Users: undelete

Requires authorization

Undeletes a deleted user. Try it now.

Request

HTTP request

POST https://www.googleapis.com/admin/directory/v1/users/userKey/undelete

Parameters

Parameter name Value Description
Path parameters
userKey string Identifies the user in the API request. The value must be the user's unique user ID.

Authorization

This request requires authorization with the following scope (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/admin.directory.user

Request body

In the request body, supply data with the following structure:

{
  "orgUnitPath": string
}
Property name Value Description Notes
orgUnitPath string OrgUnit of User writable

Response

If successful, this method returns an empty response body.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Send feedback about...

Directory API
Directory API
Need help? Visit our support page.