Generates a token (activation code) to allow this user to configure their
managed account in the Android Setup Wizard. Revokes any previously
generated token.
This call only works with Google managed accounts.
Request
HTTP request
POST https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId/token
Parameters
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
enterpriseId |
string |
The ID of the enterprise. |
userId |
string |
The ID of the user. |
Authorization
This request requires authorization with the following scope:
Scope |
---|
https://www.googleapis.com/auth/androidenterprise |
For more information, see the authentication and authorization page.
Request body
Do not supply a request body with this method.
Response
If successful, this method returns a response body with the following structure:
{ "userId": string, "token": string }
Property name | Value | Description | Notes |
---|---|---|---|
userId |
string |
The unique ID for the user. |
|
token |
string |
The token (activation code) to be entered by the user. This consists of a sequence of decimal digits. Note that the leading digit may be 0. |