Users: generateAuthenticationToken

Requires authorization

Generates an authentication token which the device policy client can use to provision the given EMM-managed user account on a device. The generated token is single-use and expires after a few minutes.

You can provision a maximum of 10 devices per user.

This call only works with EMM-managed accounts.

Request

HTTP request

POST https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/users/userId/authenticationToken

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 (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/androidenterprise

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "androidenterprise#authenticationToken",
  "token": string
}
Property name Value Description Notes
kind string Identifies what kind of resource this is. Value: the fixed string "androidenterprise#authenticationToken".
token string The authentication token to be passed to the device policy client on the device where it can be used to provision the account for which this token was generated.

Enviar comentários sobre…

Google Play EMM API