List

Retrieves the IDs of all of a user's devices

2 variables
16 variables

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

  = 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

  = 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:

  • "managedDevice", a device that has the EMM's device policy controller (DPC) as the device owner.
  • "managedProfile", a device that has a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC.
  • "containerApp", no longer used (deprecated).
  • "unmanagedProfile", a device that has been allowed (by the domain's admin, using the Admin Console to enable the privilege) to use managed Google Play, but the profile is itself not owned by a DPC.

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"