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

# Google Vault

## Synced Objects

Google Vault supports the following Synced Objects, all synced as custom records from Google Vault eDiscovery:

* Matters: Syncs Vault matters. See [Matters](#matters) for the record shape.
* Saved queries: Syncs the saved queries in each matter. See [Saved queries](#saved-queries) for the record shape.
* Search counts: Syncs a Gmail or Groups hit count for each saved query. See [Search counts](#search-counts) for the record shape.
* Exports: Syncs the export jobs in each matter. See [Exports](#exports) for the record shape.

These pipelines use the `https://www.googleapis.com/auth/ediscovery` scope, which Paragon requests by default. The connected user needs a Vault license and access to the matters you want to sync.

Saved queries, search counts and exports belong to a matter. When you don't set `matterId`, Paragon walks every open matter the connected user can access, plus closed or deleted matters when you enable `includeClosed` or `includeDeleted`.

## Matters

Send a request to [Enable Sync](https://docs.useparagon.com/managed-sync/api/enable-a-sync.md) to start a sync of matters from Google Vault.

```json Example theme={null}
{
    "integration": "google-vault",
    "pipeline": "matters",
    "configuration": {
        "includeClosed": true
    }
}
```

Each record is a custom record. Its `originalRecord` includes the matter ID, name, description, state, region and matter permissions. Vault matters have no create or update time, so `createdAt` and `updatedAt` are set to the Unix epoch.

**Configuration options:**

**matterId** `string`

The ID of a single Vault matter to sync. Must contain only letters, digits, `_` and `-`. Enabling the Sync fails with any other character. When set, `includeClosed` and `includeDeleted` are ignored.

If not specified, the Sync will ingest every matter in the selected states.

**includeClosed** `boolean`

Set to `true` to also sync closed matters. Open matters are always synced.

If not specified, defaults to `false`.

**includeDeleted** `boolean`

Set to `true` to also sync deleted matters.

If not specified, defaults to `false`.

**pageSize** `number`

The number of matters to request per page from Google Vault. Must be an integer from 1 to 100. Enabling the Sync fails with a value outside this range.

If not specified, defaults to 100.

## Saved queries

Send a request to [Enable Sync](https://docs.useparagon.com/managed-sync/api/enable-a-sync.md) to start a sync of saved queries from Google Vault.

```json Example theme={null}
{
    "integration": "google-vault",
    "pipeline": "saved-queries",
    "configuration": {
        "matterId": "<MATTER_ID>"
    }
}
```

Each record is a custom record with the ID `{matterId}/{savedQueryId}`. Its `originalRecord` includes the saved query ID, matter ID, display name, `contentQuery` (the query terms), `dataSourceScopes` (corpus, data scope, search method, accounts, organizational unit, shared drives, chat rooms and time range), created date and the full Vault query. `createdBy` is always `null`, because Google Vault does not return who saved the query.

**Configuration options:**

**matterId** `string`

The ID of a Vault matter to limit the Sync scope to saved queries in that matter. Must contain only letters, digits, `_` and `-`. Enabling the Sync fails with any other character.

If not specified, the Sync will ingest saved queries from every matter in the selected states.

**includeClosed** `boolean`

Set to `true` to also walk closed matters. Ignored when `matterId` is set.

If not specified, defaults to `false`.

**includeDeleted** `boolean`

Set to `true` to also walk deleted matters. Ignored when `matterId` is set.

If not specified, defaults to `false`.

**pageSize** `number`

The number of saved queries to request per page from Google Vault. Must be an integer from 1 to 100. Enabling the Sync fails with a value outside this range.

If not specified, defaults to 100.

## Search counts

Send a request to [Enable Sync](https://docs.useparagon.com/managed-sync/api/enable-a-sync.md) to start a sync of search counts from Google Vault.

```json Example theme={null}
{
    "integration": "google-vault",
    "pipeline": "search-counts",
    "configuration": {
        "matterId": "<MATTER_ID>",
        "countView": "ALL"
    }
}
```

Paragon runs a Vault count for each saved query and stores the result as a custom record. Its `originalRecord` includes the matter ID, saved query ID, the count status, `indexedItemCount` (the total message count) and `mailboxCount` (the number of matching accounts). Message sizes, unindexed counts and site count are `null`, because Google Vault does not return them.

Google Vault only counts Gmail and Groups queries. Saved queries for other corpora, such as Drive, are stored with the status `UNSUPPORTED` and are not counted. If a count request fails, Paragon stores that query with the status `FAILED` and continues with the next query.

**Configuration options:**

**matterId** `string`

The ID of a Vault matter to limit the Sync scope to saved queries in that matter. Must contain only letters, digits, `_` and `-`. Enabling the Sync fails with any other character.

If not specified, the Sync will count saved queries from every matter in the selected states.

**countView** `string`

The level of detail to request from Google Vault. `TOTAL_COUNT` returns account totals. `ALL` also returns message counts for each account. Enabling the Sync fails with any other value.

If not specified, defaults to `TOTAL_COUNT`.

**includeClosed** `boolean`

Set to `true` to also count queries on closed matters. Ignored when `matterId` is set.

If not specified, defaults to `false`.

**includeDeleted** `boolean`

Set to `true` to also count queries on deleted matters. Ignored when `matterId` is set.

If not specified, defaults to `false`.

**pageSize** `number`

The number of saved queries to request per page from Google Vault while counting. Must be an integer from 1 to 100. Enabling the Sync fails with a value outside this range.

If not specified, defaults to 100.

## Exports

Send a request to [Enable Sync](https://docs.useparagon.com/managed-sync/api/enable-a-sync.md) to start a sync of exports from Google Vault.

```json Example theme={null}
{
    "integration": "google-vault",
    "pipeline": "exports",
    "configuration": {
        "matterId": "<MATTER_ID>"
    }
}
```

Each record is a custom record for one export job. Its `originalRecord` includes the export ID, matter ID, name, status, query, export stats and Cloud Storage sink. The record describes the export job and its files, not the messages inside them. Google Vault has no API for individual review items, so subject, sender, custodian and extracted text are not synced.

**Configuration options:**

**matterId** `string`

The ID of a Vault matter to limit the Sync scope to exports in that matter. Must contain only letters, digits, `_` and `-`. Enabling the Sync fails with any other character.

If not specified, the Sync will ingest exports from every matter in the selected states.

**includeClosed** `boolean`

Set to `true` to also walk closed matters. Ignored when `matterId` is set.

If not specified, defaults to `false`.

**includeDeleted** `boolean`

Set to `true` to also walk deleted matters. Ignored when `matterId` is set.

If not specified, defaults to `false`.

**pageSize** `number`

The number of exports to request per page from Google Vault. Must be an integer from 1 to 100. Enabling the Sync fails with a value outside this range.

If not specified, defaults to 100.
