v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-137790167.2 KB
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

accountState'enabled' | 'disabled'

The state of the Google account on the device. "enabled" indicates that the Google account on the device can be used to access Google services (including Google Play), while "disabled" means that it cannot. A new device is initially in the "disabled" state.

Response

Successful response