> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracecat.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Chrome Policy

> Reference for the Tracecat Google Chrome Policy integration: registered actions, required secrets, expected inputs, and example workflow usage.

## Batch inherit org unit policies

Action ID: `tools.google_chrome_policy.batch_inherit_org_unit_policies`

Modify multiple policy values that are applied to a specific org unit so that they now inherit the value from a parent (if applicable). All targets must have the same target format. Use it to undo `batch_modify_org_unit_policies` or `block_extension` on a child org unit.

Reference: [https://developers.google.com/chrome/policy/reference/rest/v1/customers.policies.orgunits/batchInherit](https://developers.google.com/chrome/policy/reference/rest/v1/customers.policies.orgunits/batchInherit)

### Secrets

Optional secrets:

* `google_admin_oauth`: OAuth token `GOOGLE_ADMIN_USER_TOKEN`.
* `google_admin_oauth`: OAuth token `GOOGLE_ADMIN_SERVICE_TOKEN`.
* `google_api`: required values `GOOGLE_API_CREDENTIALS`; optional values `GOOGLE_API_SUBJECT`.

### Input fields

**requests** `array[object]` *required*

List of policies that have to inherit their values. Each request has `policyTargetKey` (`targetResource` and `additionalTargetKeys`, such as `&#123;"app_id": "chrome:&lt;extension_id>"&#125;`) and `policySchema`, the fully qualified name of the policy schema that is being inherited. All requests in the list must follow these restrictions: all schemas in the list must have the same root namespace; all `policyTargetKey.targetResource` values must point to an org unit resource (`orgunits/&#123;orgunit_id&#125;`); all `policyTargetKey` values must have the same key names in the `additionalTargetKeys`; and no two requests can reference the same `policySchema` + `policyTargetKey` pair.

**customer** `string`

ID of the Google Workspace account or literal "my\_customer" for the customer associated to the request.

Default: `"my_customer"`.

## Batch modify org unit policies

Action ID: `tools.google_chrome_policy.batch_modify_org_unit_policies`

Modify multiple policy values that are applied to a specific org unit. All targets must have the same target format. For example, block a Chrome extension with the `chrome.users.apps.InstallType` schema and `appInstallType: BLOCKED`.

Reference: [https://developers.google.com/chrome/policy/reference/rest/v1/customers.policies.orgunits/batchModify](https://developers.google.com/chrome/policy/reference/rest/v1/customers.policies.orgunits/batchModify)

### Secrets

Optional secrets:

* `google_admin_oauth`: OAuth token `GOOGLE_ADMIN_USER_TOKEN`.
* `google_admin_oauth`: OAuth token `GOOGLE_ADMIN_SERVICE_TOKEN`.
* `google_api`: required values `GOOGLE_API_CREDENTIALS`; optional values `GOOGLE_API_SUBJECT`.

### Input fields

**requests** `array[object]` *required*

List of policies to modify. Each request has `policyTargetKey` (`targetResource` and `additionalTargetKeys`, such as `&#123;"app_id": "chrome:&lt;extension_id>"&#125;`), `policyValue` (`policySchema` and `value`), and `updateMask`, the comma-separated policy fields to update. All requests in the list must follow these restrictions: all schemas in the list must have the same root namespace; all `policyTargetKey.targetResource` values must point to an org unit resource (`orgunits/&#123;orgunit_id&#125;`); all `policyTargetKey` values must have the same key names in the `additionalTargetKeys`; and no two requests can reference the same `policySchema` + `policyTargetKey` pair.

**customer** `string`

ID of the Google Workspace account or literal "my\_customer" for the customer associated to the request.

Default: `"my_customer"`.

## Block extension

Action ID: `tools.google_chrome_policy.block_extension`

Block a Chrome extension for an org unit by setting the `chrome.users.apps.InstallType` policy to `BLOCKED`. Blocking removes the extension from managed browsers and profiles in the org unit and stops users from installing it. Undo it with `batch_inherit_org_unit_policies` on a child org unit.

Reference: [https://developers.google.com/chrome/policy/reference/rest/v1/customers.policies.orgunits/batchModify](https://developers.google.com/chrome/policy/reference/rest/v1/customers.policies.orgunits/batchModify)

### Secrets

Optional secrets:

* `google_admin_oauth`: OAuth token `GOOGLE_ADMIN_USER_TOKEN`.
* `google_admin_oauth`: OAuth token `GOOGLE_ADMIN_SERVICE_TOKEN`.
* `google_api`: required values `GOOGLE_API_CREDENTIALS`; optional values `GOOGLE_API_SUBJECT`.

### Input fields

**extension\_id** `string` *required*

The 32-character Chrome Web Store ID of the extension.

**org\_unit\_id** `string` *required*

The ID of the org unit to apply the block to, without the `id:` prefix that the Directory API returns.

**customer** `string`

ID of the Google Workspace account or literal "my\_customer" for the customer associated to the request.

Default: `"my_customer"`.

## Resolve policies

Action ID: `tools.google_chrome_policy.resolve_policies`

Gets the resolved policy values for a list of policies that match a search query. Use it to check whether an extension is blocked and which org unit the value comes from.

Reference: [https://developers.google.com/chrome/policy/reference/rest/v1/customers.policies/resolve](https://developers.google.com/chrome/policy/reference/rest/v1/customers.policies/resolve)

### Secrets

Optional secrets:

* `google_admin_oauth`: OAuth token `GOOGLE_ADMIN_USER_TOKEN`.
* `google_admin_oauth`: OAuth token `GOOGLE_ADMIN_SERVICE_TOKEN`.
* `google_api`: required values `GOOGLE_API_CREDENTIALS`; optional values `GOOGLE_API_SUBJECT`.

### Input fields

**policy\_schema\_filter** `string` *required*

The schema filter to apply to the resolve request. Specify a schema name to view a particular schema, for example `chrome.users.apps.InstallType`. Wildcards are supported, but only in the leaf portion of the schema name, for example `chrome.users.apps.*`.

**policy\_target\_key** `object` *required*

The key of the target resource on which the policies should be resolved. Has `targetResource` (`orgunits/&#123;orgunit_id&#125;` or `groups/&#123;group_id&#125;`) and `additionalTargetKeys`, such as `&#123;"app_id": "chrome:&lt;extension_id>"&#125;`.

**customer** `string`

ID of the Google Workspace account or literal "my\_customer" for the customer associated to the request.

Default: `"my_customer"`.

**page\_size** `integer | null`

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

Default: `null`.

**page\_token** `string | null`

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

Default: `null`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.