AI-generated Key Takeaways
-
Generates a single-use authentication token for provisioning an EMM-managed user account on a device, expiring after a few minutes.
-
This API call allows provisioning a maximum of 10 devices per user and is exclusively for EMM-managed accounts.
-
Authorization is required with the
https://www.googleapis.com/auth/androidenterprise
scope. -
The response includes an authentication token to be used by the device policy client for provisioning.
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:
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:
{ "kind": "androidenterprise#authenticationToken", "token": string }
Property name | Value | Description | Notes |
---|---|---|---|
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. | |
kind |
string |