devices
Sets whether a device's access to Google services (including Google Play) is enabled or disabled for the specified user. Setting the state to "enabled" allows the Google Account to access Google services, while "disabled" blocks access by preventing OAuth token issuance. Preconditions for Enforcement: 1. This setting is only effective for Google-managed users. 2. The enterprise must be linked to a Google Managed Domain. 3. Enforcement requires third-party Android mobile management to be enabled within the Google Admin Console for the user's Organizational Unit. If these preconditions are not met, changes to this state may be ignored.
put/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state
Path parameters
enterpriseIdstring required
The ID of the enterprise.
userIdstring required
The ID of the user.
deviceIdstring required
The ID of the device.
Request body
Response
Successful response