---
title: "GET /v1/policies/{policiesId}"
method: GET
path: "/v1/policies/{policiesId}"
tags: ["policies"]
---

# GET /v1/policies/{policiesId}

`GET /v1/policies/{policiesId}`

## Request

- Base URL: `https://cloudidentity.googleapis.com`
- URL: `https://cloudidentity.googleapis.com/v1/policies/{policiesId}`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-identity.policies`
    - 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.policies`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-identity.policies.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.policies.readonly`

Get a policy.

## Path parameters

- `policiesId` 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

## Response `200`

Successful response

- Policy: A Policy resource binds an instance of a single Setting with the scope of a PolicyQuery. The Setting instance will be applied to all entities that satisfy the query.
  - `customer` string: Immutable. Customer that the Policy belongs to. The value is in the format 'customers/{customerId}'. The `customerId` must begin with "C" To find your customer ID in Admin Console see https://support.google.com/a/answer/10070793.
  - `name` string: Output only. Identifier. The [resource name](https://cloud.google.com/apis/design/resource_names) of the Policy. Format: policies/{policy}.
  - `policyQuery` PolicyQuery: PolicyQuery
    - `group` string: Immutable. The group that the query applies to. This field is only set if there is a single value for group that satisfies all clauses of the query. If no group applies, this will be the empty string.
    - `orgUnit` string: Required. Immutable. Non-empty default. The OrgUnit the query applies to. This field is only set if there is a single value for org_unit that satisfies all clauses of the query.
    - `query` string: Immutable. The CEL query that defines which entities the Policy applies to (ex. a User entity). For details about CEL see https://opensource.google.com/projects/cel. The OrgUnits the Policy applies to are represented by a clause like so: entity.org_units.exists(org_unit, org_unit.org_unit_id == orgUnitId('{orgUnitId}')) The Group the Policy applies to are represented by a clause like so: entity.groups.exists(group, group.group_id == groupId('{groupId}')) The Licenses the Policy applies to are represented by a clause like so: entity.licenses.exists(license, license in ['/product/{productId}/sku/{skuId}']) **Note:** The licenses clause is not supported in mutate endpoints. The above clauses can be present in any combination, and used in conjunction with the &&, || and ! operators. The org_unit and group fields below are helper fields that contain the corresponding value(s) as the query to make the query easier to use.
    - `sortOrder` number, double: Output only. The decimal sort order of this PolicyQuery. The value is relative to all other policies with the same setting type for the customer. (There are no duplicates within this set).
  - `setting` Setting: Setting
    - `type` string: Required. Immutable. The type of the Setting.
    - `value` object: Required. The value of the Setting.
  - `type` 'POLICY_TYPE_UNSPECIFIED' | 'SYSTEM' | 'ADMIN': Output only. The type of the policy.

## Changes

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

[Operation history](https://skmtc.dev/google/apis/cloudidentity/changes/v1/policies/:policiesId/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)
