> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Devices

Retrieve a list of all devices.

**Note**: This action only supports service account connections.

<Note>
  External Documentation

  To learn more, visit the [Google Cloud Identity documentation](https://cloud.google.com/identity/docs/reference/rest/v1beta1/devices/list).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter        | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Customer         | The resource name of the customer, formatted as: `customers/{customer}`.<br /><br />`Note`: Use `customers/my_customer` if you're managing your own organization's devices. Otherwise, use `customers/{customer}`, where `{customer}` is the customer who owns the device.                                                                                                                                                                                                                                                                                                     |
  | Filter           | Optional filters applied when retrieving a list of devices, formatted as: `field:value`. Separate multiple search fields by the `space` character. For example:<br /><br />`apps:com.android.mms brand:google default_language:English`<br /><br />For a list of search fields, please refer to [Google's Documentation](https://developers.google.com/workspace/admin/directory/v1/search-operators).                                                                                                                                                                         |
  | Return All Pages | Automatically fetch all resources, page by page.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
  | View             | Specify which devices and device information to include in the response.<br />\* `COMPANY_INVENTORY` - This view contains all devices imported by the company admin. Each device in the response contains all information specified by the company admin when importing the device (i.e. asset tags). This includes devices that may be unassigned or assigned to users.<br />\* `USER_ASSIGNED_DEVICES` - This view contains all devices with at least one user registered on the device. Each device in the response contains all device information, except for asset tags. |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter               | Description                                                                                                                                                                                                                                                                                                                  |
  | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Delegated User Override | Perform the action on behalf of another user, overriding the delegated user defined in the connection.<br /><br />If not specified, the delegated user is the one provided in the connection.<br /><br />Has no effect when using an OAuth connection.<br /><br />NOTE: the connection details are not edited by this input. |
  | Page Size               | The maximum number of objects to retrieve in a single execution.                                                                                                                                                                                                                                                             |
  | Page Token              | A page token, received from a previous `List Devices` execution. Provide this to retrieve the subsequent page. When paginating, all other parameters provided must match the execution that provided the page token.                                                                                                         |
</div>

## Example Output

```json theme={"dark"}
{
  "devices": [
    {
      "name": string,
      "createTime": string,
      "lastSyncTime": string,
      "ownerType": enum (DeviceOwnership),
      "model": string,
      "osVersion": string,
      "deviceType": enum (DeviceType),
      "serialNumber": string,
      "assetTag": string,
      "imei": string,
      "meid": string,
      "wifiMacAddresses": [
        string
      ],
      "networkOperator": string,
      "manufacturer": string,
      "releaseVersion": string,
      "brand": string,
      "buildNumber": string,
      "kernelVersion": string,
      "basebandVersion": string,
      "enabledDeveloperOptions": boolean,
      "otherAccounts": [
        string
      ],
      "enabledUsbDebugging": boolean,
      "securityPatchTime": string,
      "bootloaderVersion": string,
      "encryptionState": enum (EncryptionState),
      "androidSpecificAttributes": {},
      "managementState": enum (ManagementState),
      "compromisedState": enum (CompromisedState),
      "endpointVerificationSpecificAttributes": {},
      "deviceId": string,
      "unifiedDeviceId": string,
      "hostname": string,
      "clientTypes": [
        enum (ClientType)
      ]
    }
  ],
  "nextPageToken": string
}
```

## Workflow Library Example

[List Devices with Google Cloud Identity and Send Results Via Email](https://library.blinkops.com/workflows/list-devices-with-google-cloud-identity-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-devices-with-google-cloud-identity-and-send-results-via-email/canvas" />
</div>
