Queries all directory users associated with the domain.
HTTP Request
GET https://<serviceURL>/api/v1/domains/<domain>/users
Request Parameters
Parameter |
Required |
Description |
---|---|---|
domain |
Yes |
Domain from which you want to query directory users. |
HTTP Request Example
GET https://<serviceURL>/api/v1/domains/sample1.com/users HTTP/1.1 Authorization: Basic c2FtcGxlOmZqZmo0OTBpNGpnaDAzM2dsajQzYXB3ZW1hMzEwdjEwamIxZ2lrM2oz
Response
On success, the service sends back an HTTP 200 response and returns a response body in JSON format; otherwise, the response body contains error details. For more information about errors, see API Response Codes.
Status Code |
Description |
---|---|
200 |
Successful. The directory users are returned in the response body. |
The response body is an array of user objects in JSON format.
Response Example
HTTP/1.1 200 Content-Type: application/json;charset=utf-8 [ { "emailLocalPart": "user1", "displayName": "Tom" }, { "emailLocalPart": "user2", "displayName": "Jerry" } ]