Get Permissions
|
|||||
|
|
Retrieves the Android app permissions required by this app
Authorization
To use this building block you will have to grant access to at least one of the following scopes:
- Manage corporate Android devices
Input
This building block consumes 2 input parameters
Name | Format | Description |
---|---|---|
enterpriseId Required |
STRING |
The ID of the enterprise |
productId Required |
STRING |
The ID of the product |
= Parameter name
= Format
enterpriseId STRING Required The ID of the enterprise |
productId STRING Required The ID of the product |
Output
This building block provides 5 output parameters
Name | Format | Description |
---|---|---|
kind |
STRING |
Identifies what kind of resource this is. Value: the fixed string "androidenterprise#productPermissions" |
permission[] |
OBJECT |
A product permissions resource represents the set of permissions required by a specific app and whether or not they have been accepted by an enterprise admin. The API can be used to read the set of permissions, and also to update the set to indicate that permissions have been accepted |
permission[].permissionId |
STRING |
An opaque string uniquely identifying the permission |
permission[].state |
STRING |
Whether the permission has been accepted or not |
productId |
STRING |
The ID of the app that the permissions relate to, e.g. "app:com.google.android.gm" |
= Parameter name
= Format
kind STRING Identifies what kind of resource this is. Value: the fixed string "androidenterprise#productPermissions" |
permission[] OBJECT A product permissions resource represents the set of permissions required by a specific app and whether or not they have been accepted by an enterprise admin. The API can be used to read the set of permissions, and also to update the set to indicate that permissions have been accepted |
permission[].permissionId STRING An opaque string uniquely identifying the permission |
permission[].state STRING Whether the permission has been accepted or not |
productId STRING The ID of the app that the permissions relate to, e.g. "app:com.google.android.gm" |