Page Summary
-
Search for people in your domain directory using a prefix query that matches various person fields.
-
Customize the search by specifying fields to return, directory sources, and optional data merging.
-
Results are paginated with controls for page size and retrieval of subsequent pages.
-
Requires authorization with the
https://www.googleapis.com/auth/directory.readonlyscope for read access to the directory.
Provides a list of domain profiles and domain contacts in the authenticated user's domain directory that match the search query.
HTTP request
GET https://people.googleapis.com/v1/people:searchDirectoryPeople
The URL uses gRPC Transcoding syntax.
Query parameters
query
string
Required. Prefix query that matches fields in the person. Does NOT use the readMask for determining what fields to match.
readMask
string (
FieldMask
format)
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:
- addresses
- ageRanges
- biographies
- birthdays
- calendarUrls
- clientData
- coverPhotos
- emailAddresses
- events
- externalIds
- genders
- imClients
- interests
- locales
- locations
- memberships
- metadata
- miscKeywords
- names
- nicknames
- occupations
- organizations
- phoneNumbers
- photos
- relations
- sipAddresses
- skills
- urls
- userDefined
sources[]
enum (
DirectorySourceType
)
Required. Directory sources to return.
mergeSources[]
enum (
DirectoryMergeSourceType
)
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
integer
Optional. The number of people to include in the response. Valid values are between 1 and 500, inclusive. Defaults to 100 if not set or set to 0.
pageToken
string
Optional. A page token, received from a previous response
. Provide this to retrieve the subsequent page.nextPageToken
When paginating, all other parameters provided to [ people.searchDirectoryPeople
][google.people.v1.SearchDirectoryPeople] must match the first call that provided the page token.
Request body
The request body must be empty.
Response body
The response to a request for people in the authenticated user's domain directory that match the specified query.
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 that match the query. |
nextPageToken
|
A token, which can be sent as |
totalSize
|
The total number of items in the list without pagination. |
Authorization scopes
Requires the following OAuth scope:
-
https://www.googleapis.com/auth/directory.readonly
For more information, see the Authorization guide .

