Products: getPermissions

  • This method retrieves the Android app permissions needed by an app, but is deprecated and will be inaccessible after September 30, 2025.

  • New integrations should refer to updated recommendations for alternative methods.

  • To use this method before its deprecation date, you need authorization with the https://www.googleapis.com/auth/androidenterprise scope.

  • The response includes the product ID, a list of permissions with their unique IDs and acceptance status (accepted or required).

Retrieves the Android app permissions required by this app.

Request

HTTP request

GET https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/products/productId/permissions

Parameters

Parameter name Value Description
Path parameters
enterpriseId string The ID of the enterprise.
productId string The ID of the product.

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#productPermissions",
  "productId": string,
  "permission": [
    {
      "permissionId": string,
      "state": string
    }
  ]
}
Property name Value Description Notes
productId string The ID of the app that the permissions relate to, e.g. "app:com.google.android.gm".
permission[] list The permissions required by the app.
permission[].permissionId string An opaque string uniquely identifying the permission.
permission[].state string Whether the permission has been accepted or not.

Acceptable values are:
  • "accepted"
  • "required"
kind string