REST API - executeLdapQuery
The table summarizes the REST API - executeLdapQuery.
Request
Format | GET <baseurl>/directory/query/<ldapalias>/<ldapquery> |
Path parameters |
|
Query parameters |
The
|
Response
JSON | Returns a JSON representation of the content of the executeLdapQueryResponseelement. |
XML | Returns the content of the executeLdapQueryResponseelement (from the DirectoryService schema). |
Example
Request | GET <baseurl>/directory/query/easyAs/(objectclass=person)?basedn=ou%3DLondon%2Cou%3DAllEmployees&scope=ONELEVEL |
Response | {"xml-fragment": { "@ldap-alias": "easyAs", "@ldap-query": "(objectclass=person)", "@base-dn": "ou=London,ou=AllEmployees", "@search-scope": "ONELEVEL", "ldap-entry": [ {"@ldap-dn": "OU=Liam Lawrence, OU=London, OU=AllEmployees, O=easyAsInsurance"}, {"@ldap-dn": "OU=Richard Cresswell, OU=London, OU=AllEmployees, O=easyAsInsurance"}, {"@ldap-dn": "OU=Steve Simonsen, OU=London, OU=AllEmployees, O=easyAsInsurance"}, {"@ldap-dn": "OU=Tony Pulis, OU=London, OU=AllEmployees, O=easyAsInsurance"} ] }} |