POST /enterprises/enterpriseId/users/userId/devices/deviceId/forceReportUpload
Uploads a report containing any changes in app states on the device since
the last report was generated. You can call this method up to 3 times every
24 hours for a given device.
GET /enterprises/enterpriseId/users/userId/devices/deviceId/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.
PUT /enterprises/enterpriseId/users/userId/devices/deviceId/state
Sets 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.
PUT /enterprises/enterpriseId/users/userId/devices/deviceId
Updates the device policy.
To ensure the policy is properly enforced, you need to prevent unmanaged
accounts from accessing Google Play by setting theallowed_accountsin the managed configuration for the Google
Play package. Seerestrict
accounts in Google Play.
Completes the signup flow, by specifying the Completion token and
Enterprise token.
This request must not be called multiple times for a given Enterprise
Token.
Returns a unique token to access an embeddable UI. To generate a
web UI, pass the generated token into the managed Google Play javascript
API. Each token may only be used to start one UI session. See theJavaScript API documentationfor further information.
POST /enterprises/enterpriseId/generateEnterpriseUpgradeUrl
Generates an enterprise upgrade URL to upgrade an existing managed Google
Play Accounts enterprise to a managed Google domain.
Seethe guide to upgrading an enterprisefor more details.
Returns a service account and credentials. The service account
can be bound to the enterprise by calling setAccount. The service account
is unique to this enterprise and EMM, and will be deleted if the enterprise
is unbound. The credentials contain private key data and are not stored
server-side.
This method can only be called after calling
Enterprises.Enroll or Enterprises.CompleteSignup, and before
Enterprises.SetAccount; at other times it will return an error.
Subsequent calls after the first will generate a new, unique set of
credentials, and invalidate the previously generated credentials.
Once the service account is bound to the enterprise, it can be managed
using the serviceAccountKeys resource.
Looks up an enterprise by domain name.
This is only supported for enterprises created via the Google-initiated
creation flow. Lookup of the id is not needed for enterprises created via
the EMM-initiated flow since the EMM learns the enterprise ID in the
callback specified in the Enterprises.generateSignupUrl call.
Pulls and returns a notification set for the enterprises associated with
the service account authenticated for the request. The notification set may
be empty if no notification are pending. A notification set returned needs to be acknowledged within 20 seconds
by calling Enterprises.AcknowledgeNotificationSet, unless the
notification set is empty. Notifications that are not acknowledged within the 20 seconds will
eventually be included again in the response to another PullNotificationSet
request, and those that are never acknowledged will ultimately be deleted
according to the Google Cloud Platform Pub/Sub system policy. Multiple requests might be performed concurrently to retrieve
notifications, in which case the pending notifications (if any) will be
split among each caller, if any are pending. If no notifications are present, an empty notification list is returned.
Subsequent requests may return more notifications once they become
available.
Sets the store layout for the enterprise. By default, storeLayoutType
is set to "basic" and the basic store layout is enabled. The basic
layout only contains apps approved by the admin, and that have
been added to the available product set for a user (using thesetAvailableProductSetcall). Apps on the page are sorted in order of
their product ID value. If you create a custom store layout (by setting
storeLayoutType = "custom" and setting a homepage), the basic store
layout is disabled.
PUT /enterprises/enterpriseId/users/userId/managedConfigurationsForUser/managedConfigurationForUserId
Adds or updates the managed configuration settings for an app for the specified user.
If you support theManaged configurations iframe,
you can apply managed configurations to a user by specifying anmcmIdand its associated configuration variables (if any) in the request. Alternatively,
all EMMs can apply managed configurations by passing a list of managed
properties.
POST /enterprises/enterpriseId/products/productId/approve
Approves the specified product and the relevant app permissions, if any.
The maximum number of products that you can approve per enterprise customer
is 1,000.
To learn how to use managed Google Play to design and create a store
layout to display approved products to your users,
seeStore Layout Design.
POST /enterprises/enterpriseId/products/productId/generateApprovalUrl
Generates a URL that can be rendered in an iframe to display the
permissions (if any) of a product. An enterprise admin must view these
permissions and accept them on behalf of their organization in order to
approve that product.
Admins should accept the displayed permissions by
interacting with a separate UI element in the EMM console, which in turn
should trigger the use of this URL as theapprovalUrlInfo.approvalUrlproperty in aProducts.approvecall to approve the product.
This URL can only be used to display permissions for up to 1 day.
GET /enterprises/enterpriseId/products/productId/appRestrictionsSchema
Retrieves the schema that defines the configurable properties for this
product. All products have a schema, but this schema may be empty if no
managed configurations have been defined. This schema can be used to
populate a UI that allows an admin to configure the product.
To apply a managed configuration based on the schema obtained using this
API, seeManaged Configurations through Play.
Removes and invalidates the specified credentials for the service account
associated with this enterprise. The calling service account must have been
retrieved by calling Enterprises.GetServiceAccount and must have been set
as the enterprise service account by calling Enterprises.SetAccount.
Generates new credentials for the service account associated with this
enterprise. The calling service account must have been retrieved by calling
Enterprises.GetServiceAccount and must have been set as the enterprise
service account by calling Enterprises.SetAccount.
Only the type of the key should be populated in the resource to be
inserted.
Lists all active credentials for the service account associated with this
enterprise. Only the ID and key type are returned. The calling service
account must have been retrieved by calling Enterprises.GetServiceAccount
and must have been set as the enterprise service account by calling
Enterprises.SetAccount.
POST /enterprises/enterpriseId/users/userId/authenticationToken
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.
TheUsersresource
passed in the body of the request should include anaccountIdentifierand anaccountType.
If a corresponding user already exists with the same account identifier,
the user will be updated with the resource. In this case only thedisplayNamefield can be changed.
Looks up a user by primary email address.
This is only supported for Google-managed users. Lookup of the id is not
needed for EMM-managed users because the id is already returned in the
result of the Users.insert call.
Revokes access to all devices currently provisioned to the user. The user
will no longer be able to use the managed Play store on any of their
managed devices.
PUT /enterprises/enterpriseId/users/userId/availableProductSet
Modifies the set of products that a user is entitled to access (referred to
aswhitelistedproducts). Only products that areapprovedor products that were previously approved (products with revoked approval)
can be whitelisted.
Can be used with EMM-managed users only (not Google managed users).
Pass the new details in theUsersresource in the request body. Only thedisplayNamefield
can be changed. Other fields must either be unset or have the
currently active value.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-09 UTC."],[[["\u003cp\u003eThe API reference outlines resource types like devices, enterprises, products, and users, each with specific methods for interaction.\u003c/p\u003e\n"],["\u003cp\u003eDeprecated resources and methods, including entitlements, group licenses, and installs, will be inaccessible after September 30, 2025.\u003c/p\u003e\n"],["\u003cp\u003eMethods like \u003ccode\u003eget\u003c/code\u003e, \u003ccode\u003elist\u003c/code\u003e, \u003ccode\u003eupdate\u003c/code\u003e, and \u003ccode\u003edelete\u003c/code\u003e are available for most resource types to perform actions.\u003c/p\u003e\n"],["\u003cp\u003eURIs are relative to \u003ccode\u003ehttps://www.googleapis.com/androidenterprise/v1\u003c/code\u003e and may require specific query parameters.\u003c/p\u003e\n"],["\u003cp\u003eDetailed resource representations and recommended alternatives for deprecated features are available in the full documentation.\u003c/p\u003e\n"]]],[],null,[]]