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

# Google Admin and Drive Integration

Oleria provides adaptive and autonomous access security that sets your business free. As part of that promise, we provide deep integration of your Google Workspace into the Oleria platform. Google Workspace includes both Google Cloud Identity (Admin) and Google Drive. This document provides step-by-step guidance to integrate Google Workspace with your Oleria workspace.

## Prerequisites

* Google Super Admin privileges
* Grant domain-wide delegation to the Oleria app for the required scopes

<Note>Use a service account (and not an employee account) with super admin privileges for the integration to ensure continuity.</Note>

## Grant Domain-Wide Delegation

<Steps>
  <Step title="Sign in to Google Workspace Admin">
    Use your Super Admin account to login to Google Workspace and select the **Admin console**.

    <img src="https://mintcdn.com/oleria/tcADv65hr__03-bG/images/integrations/google-workspace/step-1.png?fit=max&auto=format&n=tcADv65hr__03-bG&q=85&s=0044c5432488f1761df6ee75c56683da" alt="Use Super Admin account to login to your Google Workspace and select Admin console" width="837" height="491" data-path="images/integrations/google-workspace/step-1.png" />
  </Step>

  <Step title="Open Domain-Wide Delegation settings">
    In the Admin console, go to [https://admin.google.com/ac/owl/domainwidedelegation](https://admin.google.com/ac/owl/domainwidedelegation) or navigate to **Menu** → **Security** → **Access and data control** → **API controls** → **Manage Domain Wide Delegation**.

    <img src="https://mintcdn.com/oleria/tcADv65hr__03-bG/images/integrations/google-workspace/step-2.png?fit=max&auto=format&n=tcADv65hr__03-bG&q=85&s=32d26fa4fe48f6044182d9f613531ebb" alt="Menu, Security, Access and data control, API controls, Manage Domain Wide Delegation" width="1267" height="809" data-path="images/integrations/google-workspace/step-2.png" />
  </Step>

  <Step title="Add the Oleria Client ID and OAuth scopes">
    Select **Add new**, enter the Client ID and scopes below, then select **Authorize**.

    **Client ID:** `101716000692695758600`

    **Google Admin - Directory**

    ```
    https://www.googleapis.com/auth/admin.directory.user.readonly,
    https://www.googleapis.com/auth/admin.directory.user.alias.readonly,
    https://www.googleapis.com/auth/admin.directory.user.security,
    https://www.googleapis.com/auth/admin.directory.group.readonly,
    https://www.googleapis.com/auth/admin.directory.group.member.readonly,
    https://www.googleapis.com/auth/admin.directory.orgunit.readonly,
    https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly,
    https://www.googleapis.com/auth/admin.directory.userschema.readonly,
    https://www.googleapis.com/auth/admin.directory.customer.readonly,
    https://www.googleapis.com/auth/admin.directory.domain.readonly
    ```

    **Google Admin - Reports**

    ```
    https://www.googleapis.com/auth/admin.reports.audit.readonly
    ```

    **Cloud Identity**

    ```
    https://www.googleapis.com/auth/cloud-identity.groups.readonly
    ```

    **Google Drive**

    ```
    https://www.googleapis.com/auth/drive.metadata.readonly,
    https://www.googleapis.com/auth/drive.activity.readonly,
    https://www.googleapis.com/auth/drive.readonly
    ```

    <img src="https://mintcdn.com/oleria/tcADv65hr__03-bG/images/integrations/google-workspace/step-3.png?fit=max&auto=format&n=tcADv65hr__03-bG&q=85&s=0f624f72f5f63b1265a2857cb80f2675" alt="Google Workspace domain-wide delegation dialog with Client ID and OAuth scopes entered" width="946" height="685" data-path="images/integrations/google-workspace/step-3.png" />
  </Step>

  <Step title="Grant remediation scopes (optional)">
    To perform remediations, grant domain-wide delegation for the following additional scopes:

    To revoke external users' access:

    ```
    https://www.googleapis.com/auth/drive
    ```

    To disable dormant users:

    ```
    https://www.googleapis.com/auth/admin.directory.user
    ```

    To remove user accounts from groups:

    ```
    https://www.googleapis.com/auth/admin.directory.group.member
    ```
  </Step>

  <Step title="Grant Drive label scopes (optional)">
    To view and manage Drive labels, grant the following scopes:

    ```
    https://www.googleapis.com/auth/drive.labels
    https://www.googleapis.com/auth/drive.labels.readonly
    https://www.googleapis.com/auth/drive.admin.labels
    https://www.googleapis.com/auth/drive.admin.labels.readonly
    ```
  </Step>
</Steps>

## Connect Google Workspace to Oleria

<Steps>
  <Step title="Open the integration">
    Go to your Oleria workspace, select **Integrations** → select **Google Drive**.
  </Step>

  <Step title="Authenticate">
    Select **Connect** to complete the integration.

    <img src="https://mintcdn.com/oleria/tcADv65hr__03-bG/images/integrations/google-workspace/step-5.png?fit=max&auto=format&n=tcADv65hr__03-bG&q=85&s=4047ee3f74c624414279e546a0bff096" alt="Click connect to complete the integration." width="1262" height="850" data-path="images/integrations/google-workspace/step-5.png" />

    Provide your Super Admin credentials and complete the authentication process.

    <img src="https://mintcdn.com/oleria/tcADv65hr__03-bG/images/integrations/google-workspace/step-6.png?fit=max&auto=format&n=tcADv65hr__03-bG&q=85&s=f15fc247df71dccc1a5aec8059301332" alt="Provide the super admin credential and complete the authentication process" width="676" height="788" data-path="images/integrations/google-workspace/step-6.png" />
  </Step>

  <Step title="Confirm the connection">
    You can find the newly integrated Google Admin and Google Drive instance in your Oleria workspace connected integrations.

    <img src="https://mintcdn.com/oleria/tcADv65hr__03-bG/images/integrations/google-workspace/step-7.png?fit=max&auto=format&n=tcADv65hr__03-bG&q=85&s=6c9027dea94d08fecc6be3f299fde0a8" alt="Oleria workspace Connected Integrations showing newly added Google Admin and Drive instances" width="1600" height="1051" data-path="images/integrations/google-workspace/step-7.png" />
  </Step>
</Steps>

## Re-integrate Google Drive and Admin

<Steps>
  <Step title="Initiate re-integration">
    Go to the connected integrations page and click the re-integration button to begin.

    <img src="https://mintcdn.com/oleria/tcADv65hr__03-bG/images/integrations/google-workspace/step-8.png?fit=max&auto=format&n=tcADv65hr__03-bG&q=85&s=9e595cfa45ba5f2582eb5785df535c01" alt="Oleria Connected Integrations page with re-integration button highlighted in red" width="434" height="396" data-path="images/integrations/google-workspace/step-8.png" />
  </Step>

  <Step title="Complete with service account">
    Select **Update** and use a service account with Super Admin privileges to complete the re-integration.

    <img src="https://mintcdn.com/oleria/tcADv65hr__03-bG/images/integrations/google-workspace/step-9.png?fit=max&auto=format&n=tcADv65hr__03-bG&q=85&s=157c0136f9ba195e270a82b4eb246252" alt="Click on Update and use a service account with super admin privileges to complete the re-integration" width="908" height="636" data-path="images/integrations/google-workspace/step-9.png" />
  </Step>
</Steps>

## Contact us

For questions about this integration, contact us at [support@oleria.com](mailto:support@oleria.com).
