The Admin SDK Directory APIlets administrators of enterprise domains view and manage their organization's users, groups, devices, and related resources. The Cloud Identity APIs offer additional ways of managing some of the same resources.
Service: admin.googleapis.com
To call this service, we recommend that you use the Google-provided client libraries . If your application needs to use your own libraries to call this service, use the following information when you make the API requests.
Discovery document
A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:
Service endpoint
A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:
-  https://admin.googleapis.com
REST Resource: asps
| Methods | |
|---|---|
|  delete 
 | DELETE /admin/directory/v1/users/{userKey}/asps/{codeId}Deletes an ASP issued by a user. | 
|  get 
 | GET /admin/directory/v1/users/{userKey}/asps/{codeId}Gets information about an ASP issued by a user. | 
|  list 
 | GET /admin/directory/v1/users/{userKey}/aspsLists the ASPs issued by a user. | 
REST Resource: chromeosdevices
| Methods | |
|---|---|
|  action 
 | POST /admin/directory/v1/customer/{customerId}/devices/chromeos/{resourceId}/actionUse BatchChangeChromeOsDeviceStatus instead. | 
|  get 
 | GET /admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}Retrieves a Chrome OS device's properties. | 
|  list 
 | GET /admin/directory/v1/customer/{customerId}/devices/chromeosRetrieves a paginated list of Chrome OS devices within an account. | 
|  moveDevicesToOu 
 | POST /admin/directory/v1/customer/{customerId}/devices/chromeos/moveDevicesToOuMoves or inserts multiple Chrome OS devices to an organizational unit. | 
|  patch 
 | PATCH /admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}Updates a device's updatable properties, such as annotatedUser,annotatedLocation,notes,orgUnitPath, orannotatedAssetId. | 
|  update 
 | PUT /admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}Updates a device's updatable properties, such as annotatedUser,annotatedLocation,notes,orgUnitPath, orannotatedAssetId. | 
REST Resource: customer.devices.chromeos
| Methods | |
|---|---|
|  batchChangeStatus 
 | POST /admin/directory/v1/customer/{customerId}/devices/chromeos:batchChangeStatusChanges the status of a batch of ChromeOS devices. | 
|  issueCommand 
 | POST /admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}:issueCommandIssues a command for the device to execute. | 
REST Resource: customer.devices.chromeos.commands
| Methods | |
|---|---|
|  get 
 | GET /admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}/commands/{commandId}Gets command data a specific command issued to the device. | 
REST Resource: customers
| Methods | |
|---|---|
|  get 
 | GET /admin/directory/v1/customers/{customerKey}Retrieves a customer. | 
|  patch 
 | PATCH /admin/directory/v1/customers/{customerKey}Patches a customer. | 
|  update 
 | PUT /admin/directory/v1/customers/{customerKey}Updates a customer. | 
REST Resource: domainAliases
| Methods | |
|---|---|
|  delete 
 | DELETE /admin/directory/v1/customer/{customer}/domainaliases/{domainAliasName}Deletes a domain Alias of the customer. | 
|  get 
 | GET /admin/directory/v1/customer/{customer}/domainaliases/{domainAliasName}Retrieves a domain alias of the customer. | 
|  insert 
 | POST /admin/directory/v1/customer/{customer}/domainaliasesInserts a domain alias of the customer. | 
|  list 
 | GET /admin/directory/v1/customer/{customer}/domainaliasesLists the domain aliases of the customer. | 
REST Resource: domains
| Methods | |
|---|---|
|  delete 
 | DELETE /admin/directory/v1/customer/{customer}/domains/{domainName}Deletes a domain of the customer. | 
|  get 
 | GET /admin/directory/v1/customer/{customer}/domains/{domainName}Retrieves a domain of the customer. | 
|  insert 
 | POST /admin/directory/v1/customer/{customer}/domainsInserts a domain of the customer. | 
|  list 
 | GET /admin/directory/v1/customer/{customer}/domainsLists the domains of the customer. | 
REST Resource: groups
| Methods | |
|---|---|
|  delete 
 | DELETE /admin/directory/v1/groups/{groupKey}Deletes a group. | 
|  get 
 | GET /admin/directory/v1/groups/{groupKey}Retrieves a group's properties. | 
|  insert 
 | POST /admin/directory/v1/groupsCreates a group. | 
|  list 
 | GET /admin/directory/v1/groupsRetrieves all groups of a domain or of a user given a userKey (paginated). | 
|  patch 
 | PATCH /admin/directory/v1/groups/{groupKey}Updates a group's properties. | 
|  update 
 | PUT /admin/directory/v1/groups/{groupKey}Updates a group's properties. | 
REST Resource: groups.aliases
| Methods | |
|---|---|
|  delete 
 | DELETE /admin/directory/v1/groups/{groupKey}/aliases/{alias}Removes an alias. | 
|  insert 
 | POST /admin/directory/v1/groups/{groupKey}/aliasesAdds an alias for the group. | 
|  list 
 | GET /admin/directory/v1/groups/{groupKey}/aliasesLists all aliases for a group. | 
REST Resource: members
| Methods | |
|---|---|
|  delete 
 | DELETE /admin/directory/v1/groups/{groupKey}/members/{memberKey}Removes a member from a group. | 
|  get 
 | GET /admin/directory/v1/groups/{groupKey}/members/{memberKey}Retrieves a group member's properties. | 
|  hasMember 
 | GET /admin/directory/v1/groups/{groupKey}/hasMember/{memberKey}Checks whether the given user is a member of the group. | 
|  insert 
 | POST /admin/directory/v1/groups/{groupKey}/membersAdds a user to the specified group. | 
|  list 
 | GET /admin/directory/v1/groups/{groupKey}/membersRetrieves a paginated list of all members in a group. | 
|  patch 
 | PATCH /admin/directory/v1/groups/{groupKey}/members/{memberKey}Updates the membership properties of a user in the specified group. | 
|  update 
 | PUT /admin/directory/v1/groups/{groupKey}/members/{memberKey}Updates the membership of a user in the specified group. | 
REST Resource: mobiledevices
| Methods | |
|---|---|
|  action 
 | POST /admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}/actionTakes an action that affects a mobile device. | 
|  delete 
 | DELETE /admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}Removes a mobile device. | 
|  get 
 | GET /admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}Retrieves a mobile device's properties. | 
|  list 
 | GET /admin/directory/v1/customer/{customerId}/devices/mobileRetrieves a paginated list of all user-owned mobile devices for an account. | 
REST Resource: orgunits
| Methods | |
|---|---|
|  delete 
 | DELETE /admin/directory/v1/customer/{customerId}/orgunits/{orgUnitPath=**}Removes an organizational unit. | 
|  get 
 | GET /admin/directory/v1/customer/{customerId}/orgunits/{orgUnitPath=**}Retrieves an organizational unit. | 
|  insert 
 | POST /admin/directory/v1/customer/{customerId}/orgunitsAdds an organizational unit. | 
|  list 
 | GET /admin/directory/v1/customer/{customerId}/orgunitsRetrieves a list of all organizational units for an account. | 
|  patch 
 | PATCH /admin/directory/v1/customer/{customerId}/orgunits/{orgUnitPath=**}Updates an organizational unit. | 
|  update 
 | PUT /admin/directory/v1/customer/{customerId}/orgunits/{orgUnitPath=**}Updates an organizational unit. | 
REST Resource: privileges
| Methods | |
|---|---|
|  list 
 | GET /admin/directory/v1/customer/{customer}/roles/ALL/privilegesRetrieves a paginated list of all privileges for a customer. | 
REST Resource: resources.buildings
| Methods | |
|---|---|
|  delete 
 | DELETE /admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}Deletes a building. | 
|  get 
 | GET /admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}Retrieves a building. | 
|  insert 
 | POST /admin/directory/v1/customer/{customer}/resources/buildingsInserts a building. | 
|  list 
 | GET /admin/directory/v1/customer/{customer}/resources/buildingsRetrieves a list of buildings for an account. | 
|  patch 
 | PATCH /admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}Patches a building. | 
|  update 
 | PUT /admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}Updates a building. | 
REST Resource: resources.calendars
| Methods | |
|---|---|
|  delete 
 | DELETE /admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}Deletes a calendar resource. | 
|  get 
 | GET /admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}Retrieves a calendar resource. | 
|  insert 
 | POST /admin/directory/v1/customer/{customer}/resources/calendarsInserts a calendar resource. | 
|  list 
 | GET /admin/directory/v1/customer/{customer}/resources/calendarsRetrieves a list of calendar resources for an account. | 
|  patch 
 | PATCH /admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}Patches a calendar resource. | 
|  update 
 | PUT /admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}Updates a calendar resource. | 
REST Resource: resources.features
| Methods | |
|---|---|
|  delete 
 | DELETE /admin/directory/v1/customer/{customer}/resources/features/{featureKey}Deletes a feature. | 
|  get 
 | GET /admin/directory/v1/customer/{customer}/resources/features/{featureKey}Retrieves a feature. | 
|  insert 
 | POST /admin/directory/v1/customer/{customer}/resources/featuresInserts a feature. | 
|  list 
 | GET /admin/directory/v1/customer/{customer}/resources/featuresRetrieves a list of features for an account. | 
|  patch 
 | PATCH /admin/directory/v1/customer/{customer}/resources/features/{featureKey}Patches a feature. | 
|  rename 
 | POST /admin/directory/v1/customer/{customer}/resources/features/{oldName}/renameRenames a feature. | 
|  update 
 | PUT /admin/directory/v1/customer/{customer}/resources/features/{featureKey}Updates a feature. | 
REST Resource: roleAssignments
| Methods | |
|---|---|
|  delete 
 | DELETE /admin/directory/v1/customer/{customer}/roleassignments/{roleAssignmentId}Deletes a role assignment. | 
|  get 
 | GET /admin/directory/v1/customer/{customer}/roleassignments/{roleAssignmentId}Retrieves a role assignment. | 
|  insert 
 | POST /admin/directory/v1/customer/{customer}/roleassignmentsCreates a role assignment. | 
|  list 
 | GET /admin/directory/v1/customer/{customer}/roleassignmentsRetrieves a paginated list of all roleAssignments. | 
REST Resource: roles
| Methods | |
|---|---|
|  delete 
 | DELETE /admin/directory/v1/customer/{customer}/roles/{roleId}Deletes a role. | 
|  get 
 | GET /admin/directory/v1/customer/{customer}/roles/{roleId}Retrieves a role. | 
|  insert 
 | POST /admin/directory/v1/customer/{customer}/rolesCreates a role. | 
|  list 
 | GET /admin/directory/v1/customer/{customer}/rolesRetrieves a paginated list of all the roles in a domain. | 
|  patch 
 | PATCH /admin/directory/v1/customer/{customer}/roles/{roleId}Patches a role. | 
|  update 
 | PUT /admin/directory/v1/customer/{customer}/roles/{roleId}Updates a role. | 
REST Resource: schemas
| Methods | |
|---|---|
|  delete 
 | DELETE /admin/directory/v1/customer/{customerId}/schemas/{schemaKey}Deletes a schema. | 
|  get 
 | GET /admin/directory/v1/customer/{customerId}/schemas/{schemaKey}Retrieves a schema. | 
|  insert 
 | POST /admin/directory/v1/customer/{customerId}/schemasCreates a schema. | 
|  list 
 | GET /admin/directory/v1/customer/{customerId}/schemasRetrieves all schemas for a customer. | 
|  patch 
 | PATCH /admin/directory/v1/customer/{customerId}/schemas/{schemaKey}Patches a schema. | 
|  update 
 | PUT /admin/directory/v1/customer/{customerId}/schemas/{schemaKey}Updates a schema. | 
REST Resource: tokens
| Methods | |
|---|---|
|  delete 
 | DELETE /admin/directory/v1/users/{userKey}/tokens/{clientId}Deletes all access tokens issued by a user for an application. | 
|  get 
 | GET /admin/directory/v1/users/{userKey}/tokens/{clientId}Gets information about an access token issued by a user. | 
|  list 
 | GET /admin/directory/v1/users/{userKey}/tokensReturns the set of tokens specified user has issued to 3rd party applications. | 
REST Resource: twoStepVerification
| Methods | |
|---|---|
|  turnOff 
 | POST /admin/directory/v1/users/{userKey}/twoStepVerification/turnOffTurns off 2-Step Verification for user. | 
REST Resource: users
| Methods | |
|---|---|
|  delete 
 | DELETE /admin/directory/v1/users/{userKey}Deletes a user. | 
|  get 
 | GET /admin/directory/v1/users/{userKey}Retrieves a user. | 
|  insert 
 | POST /admin/directory/v1/usersCreates a user. | 
|  list 
 | GET /admin/directory/v1/usersRetrieves a paginated list of either deleted users or all users in a domain. | 
|  makeAdmin 
 | POST /admin/directory/v1/users/{userKey}/makeAdminMakes a user a super administrator. | 
|  patch 
 | PATCH /admin/directory/v1/users/{userKey}Updates a user using patch semantics. | 
|  signOut 
 | POST /admin/directory/v1/users/{userKey}/signOutSigns a user out of all web and device sessions and reset their sign-in cookies. | 
|  undelete 
 | POST /admin/directory/v1/users/{userKey}/undeleteUndeletes a deleted user. | 
|  update 
 | PUT /admin/directory/v1/users/{userKey}Updates a user. | 
|  watch 
 | POST /admin/directory/v1/users/watchWatches for changes in users list. | 
REST Resource: users.aliases
| Methods | |
|---|---|
|  delete 
 | DELETE /admin/directory/v1/users/{userKey}/aliases/{alias}Removes an alias. | 
|  insert 
 | POST /admin/directory/v1/users/{userKey}/aliasesAdds an alias. | 
|  list 
 | GET /admin/directory/v1/users/{userKey}/aliasesLists all aliases for a user. | 
|  watch 
 | POST /admin/directory/v1/users/{userKey}/aliases/watchWatches for changes in users list. | 
REST Resource: users.photos
| Methods | |
|---|---|
|  delete 
 | DELETE /admin/directory/v1/users/{userKey}/photos/thumbnailRemoves the user's photo. | 
|  get 
 | GET /admin/directory/v1/users/{userKey}/photos/thumbnailRetrieves the user's photo. | 
|  patch 
 | PATCH /admin/directory/v1/users/{userKey}/photos/thumbnailAdds a photo for the user. | 
|  update 
 | PUT /admin/directory/v1/users/{userKey}/photos/thumbnailAdds a photo for the user. | 
REST Resource: verificationCodes
| Methods | |
|---|---|
|  generate 
 | POST /admin/directory/v1/users/{userKey}/verificationCodes/generateGenerates new backup verification codes for the user. | 
|  invalidate 
 | POST /admin/directory/v1/users/{userKey}/verificationCodes/invalidateInvalidates the current backup verification codes for the user. | 
|  list 
 | GET /admin/directory/v1/users/{userKey}/verificationCodesReturns the current set of valid backup verification codes for the specified user. | 

