Method: customers.policies.resolve

Gets the resolved policy values for a list of policies that match a search query.

HTTP request

POST https://chromepolicy.googleapis.com/v1/{customer=customers/*}/policies:resolve

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
customer

string

ID of the G Suite account or literal "my_customer" for the customer associated to the request.

Request body

The request body contains data with the following structure:

JSON representation
{
  "policySchemaFilter": string,
  "policyTargetKey": {
    object (PolicyTargetKey)
  },
  "pageSize": integer,
  "pageToken": string
}
Fields
policySchemaFilter

string

Required. The schema filter to apply to the resolve request.

Specify a schema name to view a particular schema, for example: chrome.users.ShowLogoutButton

Wildcards are supported, but only in the leaf portion of the schema name. Wildcards cannot be used in namespace directly. Please read https://developers.google.com/chrome/policy/guides/policy-schemas for details on schema namespaces.

For example: Valid: "chrome.users.*", "chrome.users.apps.*", "chrome.printers.*" Invalid: "*", "*.users", "chrome.*", "chrome.*.apps.*"

policyTargetKey

object (PolicyTargetKey)

Required. The key of the target resource on which the policies should be resolved.

pageSize

integer

The maximum number of policies to return, defaults to 100 and has a maximum of 1000.

pageToken

string

The page token used to retrieve a specific page of the request.

Response body

Response message for getting the resolved policy value for a specific target.

If successful, the response body contains data with the following structure:

JSON representation
{
  "resolvedPolicies": [
    {
      object (ResolvedPolicy)
    }
  ],
  "nextPageToken": string
}
Fields
resolvedPolicies[]

object (ResolvedPolicy)

The list of resolved policies found by the resolve request.

nextPageToken

string

The page token used to get the next set of resolved policies found by the request.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/chrome.management.policy.readonly
  • https://www.googleapis.com/auth/chrome.management.policy

ResolvedPolicy

The resolved value of a policy for a given target.

JSON representation
{
  "targetKey": {
    object (PolicyTargetKey)
  },
  "value": {
    object (PolicyValue)
  },
  "sourceKey": {
    object (PolicyTargetKey)
  },
  "addedSourceKey": {
    object (PolicyTargetKey)
  }
}
Fields
targetKey

object (PolicyTargetKey)

Output only. The target resource for which the resolved policy value applies.

value

object (PolicyValue)

Output only. The resolved value of the policy.

sourceKey

object (PolicyTargetKey)

Output only. The source resource from which this policy value is obtained. May be the same as targetKey if the policy is directly modified on the target, otherwise it would be another resource from which the policy gets its value (if applicable). If not present, the source is the default value for the customer.

addedSourceKey

object (PolicyTargetKey)

Output only. The added source key establishes at which level an entity was explicitly added for management. This is useful for certain type of policies that are only applied if they are explicitly added for management. For example: apps and networks. An entity can only be deleted from management in an Organizational Unit that it was explicitly added to. If this is not present it means that the policy is managed without the need to explicitly add an entity, for example: standard user or device policies.