List
|
|||||
|
|
Retrieves the IDs of all of a user's devices
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 |
userId Required |
STRING |
The ID of the user |
= Parameter name
= Format
enterpriseId STRING Required The ID of the enterprise |
userId STRING Required The ID of the user |
Output
This building block provides 16 output parameters
Name | Format | Description |
---|---|---|
device[] |
OBJECT |
A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user |
device[].androidId |
STRING |
The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, "123456789abcdef0" |
device[].kind |
STRING |
Identifies what kind of resource this is. Value: the fixed string "androidenterprise#device" |
device[].managementType |
STRING |
Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. Possible values include:
|
device[].policy |
OBJECT |
The device policy for a given managed device |
device[].policy.autoUpdatePolicy |
STRING |
The auto-update policy for apps installed on the device. "choiceToTheUser" allows the device's user to configure the app update policy. "always" enables auto updates. "never" disables auto updates. "wifiOnly" enables auto updates only when the device is connected to wifi |
device[].policy.deviceReportPolicy |
STRING |
Whether the device reports app states to the EMM. The default value is "deviceReportDisabled" |
device[].policy.maintenanceWindow |
OBJECT |
Maintenance window for managed Google Play Accounts. This allows Play store to update the apps on the foreground in the designated window |
device[].policy.maintenanceWindow.durationMs |
INTEGER |
Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive) |
device[].policy.maintenanceWindow.startTimeAfterMidnightMs |
INTEGER |
Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight |
device[].policy.productAvailabilityPolicy |
STRING |
The availability granted to the device for the specified products. "all" gives the device access to all products, regardless of approval status. "all" does not enable automatic visibility of "alpha" or "beta" tracks. "whitelist" grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default |
device[].policy.productPolicy[] |
OBJECT |
The policy for a product |
device[].report |
OBJECT |
Device report updated with the latest app states for managed apps on the device |
device[].report.appState[] |
OBJECT |
List of states set by the app |
device[].report.lastUpdatedTimestampMillis |
INTEGER |
The timestamp of the last report update in milliseconds since epoch. This field will always be present |
kind |
STRING |
Identifies what kind of resource this is. Value: the fixed string "androidenterprise#devicesListResponse" |
= Parameter name
= Format
device[] OBJECT A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user |
device[].androidId STRING The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, "123456789abcdef0" |
device[].kind STRING Identifies what kind of resource this is. Value: the fixed string "androidenterprise#device" |
device[].managementType STRING Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. Possible values include:
|
device[].policy OBJECT The device policy for a given managed device |
device[].policy.autoUpdatePolicy STRING The auto-update policy for apps installed on the device. "choiceToTheUser" allows the device's user to configure the app update policy. "always" enables auto updates. "never" disables auto updates. "wifiOnly" enables auto updates only when the device is connected to wifi |
device[].policy.deviceReportPolicy STRING Whether the device reports app states to the EMM. The default value is "deviceReportDisabled" |
device[].policy.maintenanceWindow OBJECT Maintenance window for managed Google Play Accounts. This allows Play store to update the apps on the foreground in the designated window |
device[].policy.maintenanceWindow.durationMs INTEGER Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive) |
device[].policy.maintenanceWindow.startTimeAfterMidnightMs INTEGER Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight |
device[].policy.productAvailabilityPolicy STRING The availability granted to the device for the specified products. "all" gives the device access to all products, regardless of approval status. "all" does not enable automatic visibility of "alpha" or "beta" tracks. "whitelist" grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default |
device[].policy.productPolicy[] OBJECT The policy for a product |
device[].report OBJECT Device report updated with the latest app states for managed apps on the device |
device[].report.appState[] OBJECT List of states set by the app |
device[].report.lastUpdatedTimestampMillis INTEGER The timestamp of the last report update in milliseconds since epoch. This field will always be present |
kind STRING Identifies what kind of resource this is. Value: the fixed string "androidenterprise#devicesListResponse" |