---
title: "GET /v1/devices/{devicesId}/deviceUsers/{deviceUsersId}/clientStates"
method: GET
path: "/v1/devices/{devicesId}/deviceUsers/{deviceUsersId}/clientStates"
tags: ["devices"]
---

# GET /v1/devices/{devicesId}/deviceUsers/{deviceUsersId}/clientStates

`GET /v1/devices/{devicesId}/deviceUsers/{deviceUsersId}/clientStates`

## Request

- Base URL: `https://cloudidentity.googleapis.com`
- URL: `https://cloudidentity.googleapis.com/v1/devices/{devicesId}/deviceUsers/{deviceUsersId}/clientStates`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-identity.devices`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-identity.devices`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-identity.devices.readonly`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-identity.devices.readonly`

Lists the client states for the given search query.

## Path parameters

- `devicesId` string, required
- `deviceUsersId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `customer` string
- `filter` string
- `orderBy` string
- `pageToken` string

## Response `200`

Successful response

- GoogleAppsCloudidentityDevicesV1ListClientStatesResponse: Response message that is returned in ListClientStates.
  - `clientStates` GoogleAppsCloudidentityDevicesV1ClientState[]: Client states meeting the list restrictions.
    - `assetTags` string[]: The caller can specify asset tags for this resource
    - `complianceState` 'COMPLIANCE_STATE_UNSPECIFIED' | 'COMPLIANT' | 'NON_COMPLIANT': The compliance state of the resource as specified by the API client.
    - `createTime` string, google-datetime: Output only. The time the client state data was created.
    - `customId` string: This field may be used to store a unique identifier for the API resource within which these CustomAttributes are a field.
    - `etag` string: The token that needs to be passed back for concurrency control in updates. Token needs to be passed back in UpdateRequest
    - `healthScore` 'HEALTH_SCORE_UNSPECIFIED' | 'VERY_POOR' | 'POOR' | 'NEUTRAL' | 'GOOD' | 'VERY_GOOD': The Health score of the resource. The Health score is the callers specification of the condition of the device from a usability point of view. For example, a third-party device management provider may specify a health score based on its compliance with organizational policies.
    - `keyValuePairs` object: The map of key-value attributes stored by callers specific to a device. The total serialized length of this map may not exceed 10KB. No limit is placed on the number of attributes in a map.
    - `lastUpdateTime` string, google-datetime: Output only. The time the client state data was last updated.
    - `managed` 'MANAGED_STATE_UNSPECIFIED' | 'MANAGED' | 'UNMANAGED': The management state of the resource as specified by the API client.
    - `name` string: Output only. [Resource name](https://cloud.google.com/apis/design/resource_names) of the ClientState in format: `devices/{device}/deviceUsers/{device_user}/clientState/{partner}`, where partner corresponds to the partner storing the data. For partners belonging to the "BeyondCorp Alliance", this is the partner ID specified to you by Google. For all other callers, this is a string of the form: `{customer}-suffix`, where `customer` is your customer ID. The *suffix* is any string the caller specifies. This string will be displayed verbatim in the administration console. This suffix is used in setting up Custom Access Levels in Context-Aware Access. Your organization's customer ID can be obtained from the URL: `GET https://www.googleapis.com/admin/directory/v1/customers/my_customer` The `id` field in the response contains the customer ID starting with the letter 'C'. The customer ID to be used in this API is the string after the letter 'C' (not including 'C')
    - `ownerType` 'OWNER_TYPE_UNSPECIFIED' | 'OWNER_TYPE_CUSTOMER' | 'OWNER_TYPE_PARTNER': Output only. The owner of the ClientState
    - `scoreReason` string: A descriptive cause of the health score.
  - `nextPageToken` string: Token to retrieve the next page of results. Empty if there are no more results.

## Changes

- **2026-11-18** `7be184a4f032`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-identity.devices` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-identity.devices` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-identity.devices.readonly` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-identity.devices.readonly` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/cloudidentity/changes/v1/devices/:devicesId/deviceUsers/:deviceUsersId/clientStates/get.md)

---

[API](https://skmtc.dev/google/apis/cloudidentity.md) - [All operations](https://skmtc.dev/google/apis/cloudidentity/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/cloudidentity/revisions/7be184a4f032?raw)
