AI-generated Key Takeaways
-
Lists domain profiles and contacts within the authenticated user's domain directory.
-
Allows for filtering and pagination of results using query parameters like
readMask,sources,pageSize,pageToken, andsyncToken. -
Supports incremental synchronization to retrieve changes since the last request using the
syncTokenandrequestSyncTokenparameters. -
Returns a list of
Personobjects containing directory information, along with pagination and synchronization tokens. -
Requires the
https://www.googleapis.com/auth/directory.readonlyOAuth scope for authorization.
Provides a list of domain profiles and domain contacts in the authenticated user's domain directory.
When the is specified, resources deleted since the last sync will be returned as a person with syncToken set to true.PersonMetadata.deleted
When the or pageToken is specified, all other request parameters must match the first call.syncToken
Writes may have a propagation delay of several minutes for sync requests. Incremental syncs are not intended for read-after-write use cases.
See example usage at List the directory people that have changed.
HTTP request
GET https://people.googleapis.com/v1/people:listDirectoryPeople
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
readMask |
Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Valid values are:
|
sources[] |
Required. Directory sources to return. |
mergeSources[] |
Optional. Additional data to merge into the directory sources if they are connected through verified join keys such as email addresses or phone numbers. |
pageSize |
Optional. The number of people to include in the response. Valid values are between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0. |
pageToken |
Optional. A page token, received from a previous response When paginating, all other parameters provided to |
requestSyncToken |
Optional. Whether the response should return More details about sync behavior at |
syncToken |
Optional. A sync token, received from a previous response When syncing, all other parameters provided to More details about sync behavior at |
Request body
The request body must be empty.
Response body
The response to a request for the authenticated user's domain directory.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"people": [
{
object ( |
| Fields | |
|---|---|
people[] |
The list of people in the domain directory. |
nextPageToken |
A token, which can be sent as |
nextSyncToken |
A token, which can be sent as |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/directory.readonly
For more information, see the Authorization guide.