List directory users
Retrieves a list of all users within a specified directory for an organization. This endpoint allows you to view user accounts associated with your connected Directory Providers.
Path parameters
Unique identifier of the organization
Unique identifier of the directory within the organization
Query parameters
Number of users to return per page. Maximum value is 30. If not specified, defaults to 10
Token for pagination. Use the value returned in the 'next_page_token' field of the previous response to retrieve the next page of results
If set to true, the response will include the full user payload with all available details. If false or not specified, only essential user information will be returned
Filter users by their membership in a specific directory group
Filter users that were updated after the specified timestamp. Use ISO 8601 format
Response
Successfully retrieved the list of users from the specified directory
Example response
{
"users": [
{
"email": "johndoe",
"family_name": "Doe",
"given_name": "John",
"groups": [
{
"display_name": "Admins",
"id": "dirgroup_121312434123312",
"total_users": 10,
"updated_at": "2024-10-01T00:00:00Z"
}
],
"id": "diruser_121312434123312",
"preferred_username": "johndoe",
"updated_at": "2024-10-01T00:00:00Z"
}
]
}