Required.Resource nameof the ClientState in format:devices/{deviceId}/deviceUsers/{device_user_id}/clientStates/{partner_id}, wheredeviceIdis the unique ID assigned to the Device,device_user_idis the unique ID assigned to the User andpartner_ididentifies the partner storing the data. To get the client state for devices belonging to your own organization, thepartnerIdis in the format:customerId-*anystring*. Where thecustomerIdis your organization's customer ID andanystringis any suffix. This suffix is used in setting up Custom Access Levels in Context-Aware Access. You may usemy_customerinstead of the customer ID for devices managed by your own organization.
You may specify-in place of the{deviceId}, so the ClientState resource name can be:devices/-/deviceUsers/{device_user_resource_id}/clientStates/{partner_id}.
Query parameters
Parameters
customer
string
Optional.Resource nameof the customer. If you're using this API for your own organization, usecustomers/my_customerIf you're using this API to manage another organization, usecustomers/{customerId}, where customerId is the customer to whom the device belongs.
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance ofClientState.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eThis webpage documents the API endpoint for retrieving the client state of a device user via a GET request.\u003c/p\u003e\n"],["\u003cp\u003eThe request URL requires the device ID, device user ID, and partner ID as path parameters to identify the specific ClientState resource.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epartner_id\u003c/code\u003e within the path parameter utilizes a unique format of customer ID followed by any string suffix, or simply using \u003ccode\u003emy_customer\u003c/code\u003e for organization-managed devices.\u003c/p\u003e\n"],["\u003cp\u003eAn optional query parameter \u003ccode\u003ecustomer\u003c/code\u003e allows you to specify the customer resource name, using either \u003ccode\u003ecustomers/my_customer\u003c/code\u003e for your own organization or \u003ccode\u003ecustomers/{customerId}\u003c/code\u003e for other organizations.\u003c/p\u003e\n"],["\u003cp\u003eA successful request will return an instance of \u003ccode\u003eClientState\u003c/code\u003e as a response and the request will require one of the specified OAuth scopes for proper authorization.\u003c/p\u003e\n"]]],[],null,["# Method: devices.deviceUsers.clientStates.get\n\nGets the client state for the device user\n\n### HTTP request\n\n`GET https://cloudidentity.googleapis.com/v1beta1/{name=devices/*/deviceUsers/*/clientStates/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [ClientState](/identity/docs/reference/rest/v1beta1/devices.deviceUsers.clientStates#ClientState).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-identity.devices.readonly`\n- `https://www.googleapis.com/auth/cloud-identity.devices`\n- `https://www.googleapis.com/auth/cloud-identity`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]