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

# GET /v1/devices/{devicesId}/deviceUsers:lookup

`GET /v1/devices/{devicesId}/deviceUsers:lookup`

## Request

- Base URL: `https://cloudidentity.googleapis.com`
- URL: `https://cloudidentity.googleapis.com/v1/devices/{devicesId}/deviceUsers:lookup`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-identity.devices.lookup`
  - 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.lookup`

Looks up resource names of the DeviceUsers associated with the caller's credentials, as well as the properties provided in the request. This method must be called with end-user credentials with the scope: https://www.googleapis.com/auth/cloud-identity.devices.lookup If multiple properties are provided, only DeviceUsers having all of these properties are considered as matches - i.e. the query behaves like an AND. Different platforms require different amounts of information from the caller to ensure that the DeviceUser is uniquely identified. - iOS: If either the `partner` or `ios_device_id` field is provided, then both fields are required. - Android: Specifying the `android_id` field is required. - Desktop: Specifying the `raw_resource_id` field is required.

## Path parameters

- `devicesId` 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
- `androidId` string
- `iosDeviceId` string
- `pageSize` integer
- `pageToken` string
- `partner` string
- `rawResourceId` string
- `userId` string

## Response `200`

Successful response

- GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse: Response containing resource names of the DeviceUsers associated with the caller's credentials.
  - `customer` string: The customer resource name that may be passed back to other Devices API methods such as List, Get, etc.
  - `names` string[]: [Resource names](https://cloud.google.com/apis/design/resource_names) of the DeviceUsers in the format: `devices/{device}/deviceUsers/{user_resource}`, where device is the unique ID assigned to a Device and user_resource is the unique user ID
  - `nextPageToken` string: Token to retrieve the next page of results. Empty if there are no more results.

---

[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)
