> ## 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

> Connect to your users' Google Vault accounts to manage and sync eDiscovery matters, saved queries, search counts and exports.

Product
Supported

## Setup Guide

You can find your Google app credentials by visiting your [Google Cloud Console dashboard](https://console.cloud.google.com/projectselector2/home/dashboard?supportedpurview=project). See Google's [Vault API authorization guide](https://developers.google.com/workspace/vault/auth) for how to create an OAuth client for Google Vault.

You'll need the following information to set up your Google app with Paragon Connect:

* Client ID
* Client Secret
* Scopes Requested

> [!WARNING]
>
> Google Applications using scopes that permit access to certain user data must complete a verification process. [Read more](https://developers.google.com/identity/protocols/oauth2/scopes) about Google's various API scopes and processes to verify your usage.

### Add the Redirect URL to your Google app

Paragon provides a redirect URL to send information to your Google app. To add the redirect URL to your Google app:

1. Copy the link under "**Redirect URL**" in your integration settings in Paragon. The Redirect URL is:

```text theme={null}
https://passport.useparagon.com/oauth
```

2. In your [Google Cloud Console dashboard](https://console.cloud.google.com/projectselector2/home/dashboard?supportedpurview=project), navigate to **APIs & Services > Credentials** in the sidebar.

3. Press "**+ Create Credentials**", then select **OAuth client ID**.

4. Select "**Web application**" from the Application type drop-down menu.

5. Under **Authorized redirect URIs**, press the "**+ Add URI**" button.

6. Paste the redirect URL from Paragon.

7. Press the blue "**Create**" button.

Google provides you with the **Client ID** and **Client Secret** needed for the next steps after adding the redirect URL to your project.

### Enable the Google Vault API in Google Cloud Console

1. In your Google Cloud Console dashboard, navigate to **APIs & Services > Library** in the sidebar.

2. Search for "Google Vault API" from the API Library.

3. Select the "Google Vault API".

4. Press the blue "**Enable**" button to enable the API for your application.

### Add your Google app to Paragon

1. Select **Google Vault** from the **Integrations Catalog**.

2. Under **Integrations > Connected Integrations > Google Vault > App Configuration > Configure**, fill out your credentials in their respective sections:

* **Client ID:** Your Google OAuth client ID.
* **Client Secret:** Your Google OAuth client secret.
* **Permissions:** Paragon requests the `https://www.googleapis.com/auth/ediscovery` scope, which is required to manage matters, searches, counts and exports.

Press the purple "**Save Changes**" button to save your credentials.

## Connecting to Google Vault

Your users connect with a Google Workspace account that has a Vault license and the **Manage Matters**, **Manage Searches** and **Manage Exports** Vault privileges.

Once your users have connected their Google Vault account, you can use the Paragon SDK to access the Google Vault API on behalf of connected users.

See the Google Vault [REST API reference](https://developers.google.com/workspace/vault/reference/rest) for their full API reference.

Any Google Vault API endpoints can be accessed with the Paragon SDK as shown in this example.

```js JavaScript theme={null}
// You can find your project ID in the Overview tab of any Integration

// Authenticate the user
paragon.authenticate(<ProjectId>, <UserToken>);

// List matters the connected user can access
await paragon.request("google-vault", "/v1/matters?pageSize=10", {
  method: "GET"
});

// Create a matter
await paragon.request("google-vault", "/v1/matters", {
  method: "POST",
  body: {
    name: "Investigation",
    description: "Mailbox review"
  }
});
```

## Building Google Vault workflows

Once your Google Vault account is connected, you can add steps to perform the following actions:

* **Matters:** Search Matters, Get Matter, Create Matter, Update Matter, Close Matter, Reopen Matter, Delete Matter, Undelete Matter
* **Searches:** Count Search (Gmail or Groups hits)
* **Saved queries:** Search Saved Queries, Get Saved Query, Create Saved Query, Delete Saved Query
* **Exports:** Create Export, Search Exports, Get Export, Delete Export

You can also use the [Google Vault Request](https://docs.useparagon.com/workflows/requests.md#making-integration-requests) step to access any of Google Vault's API endpoints without the authentication piece.

When creating or updating records in Google Vault, you can reference data from previous steps by typing `{{` to invoke the variable menu.

## Using triggers

Google Vault does not send webhooks. The Google Vault trigger polls your users' Vault exports and runs your workflow when an export finishes:

* **Export Finished:** Fires when an export reaches the `COMPLETED` or `FAILED` status.
