Page Summary
-
This request requires authorization and retrieves whether a device's access to Google services is enabled or disabled.
-
The device state is only effective if enforcing EMM policies is enabled in the Google Admin Console; otherwise, all devices are allowed access.
-
This functionality is only supported for Google-managed users.
-
The response indicates the account state ("enabled" or "disabled") on the device, with new devices initially in the "disabled" state.
Retrieves whether a device's access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.
Request
HTTP request
GET https://www.googleapis.com/androidenterprise/v1/enterprises/ enterpriseId /users/ userId /devices/ deviceId /state
Parameters
deviceId
string
enterpriseId
string
userId
string
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#deviceState", "accountState": string }
accountState
string
Acceptable values are:
- "
disabled" - "
enabled"
kind
string

