Important: We are no longer accepting new registrations for the Play EMM API. Learn more.

Users: generateToken

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.


HTTP request



Parameter name Value Description
Path parameters
enterpriseId string The ID of the enterprise.
userId string The ID of the user.


This request requires authorization with the following scope:


For more information, see the authentication and authorization page.

Request body

Do not supply a request body with this method.


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.