# Installing Nightfall for Google Drive

This document explains the steps to install the Nightfall for Google Drive.&#x20;

## Requirements

To install the Nightfall DLP for Google Drive integration, you must have the following:

* A Google Workspace account, preferably a service account.
* An admin user account of your organization's Google Workspace account (or any other Google Workspace account) on which you wish to install the integration.

## Installation

To install Nightfall for Google Drive:

1. Log in to Nightfall.
2. Click **Google Drive** under the **MY INTEGRATIONS** section (click **Show more** if you are unable to view Google Drive)
3. Click **Begin Setup**. 

<figure><img src="https://content.gitbook.com/content/i2neFs5a4fa47QifSoot/blobs/zBiUSJ4TcduxvSnbNyVX/image.png" alt=""><figcaption></figcaption></figure>

The access permission page is displayed as follows. Copy the **client ID** and **Scopes** **ID** generated.

<figure><img src="https://content.gitbook.com/content/i2neFs5a4fa47QifSoot/blobs/OL9JI2CokCYZbQHLAoEw/image.png" alt=""><figcaption></figcaption></figure>

4. Login to your Google Workspace with an admin account.
5. Click the menu icon.
6. Select **Admin**.

<figure><img src="https://content.gitbook.com/content/i2neFs5a4fa47QifSoot/blobs/Px6HR9ucL4aGeJAhoinE/image.png" alt=""><figcaption></figcaption></figure>

7. In the Admin console left pane, expand **Security** and then expand **Access and data control**.
8. Click **API controls**.

<figure><img src="https://content.gitbook.com/content/i2neFs5a4fa47QifSoot/blobs/YwBfr4DccOcpfwRA9BeX/image.png" alt=""><figcaption></figcaption></figure>

9. Click **MANAGE DOMAIN WIDE DELEGATION** under **Domain wide delegation**.

<figure><img src="https://content.gitbook.com/content/i2neFs5a4fa47QifSoot/blobs/MgtVcShvm5M85Ov5nbfK/image.png" alt=""><figcaption></figcaption></figure>

10. Click **Add New**.

<figure><img src="https://content.gitbook.com/content/i2neFs5a4fa47QifSoot/blobs/osPY6DGekFD9Kj27QFs2/image.png" alt=""><figcaption></figcaption></figure>

11. Paste the **Client ID** copied from the Nightfall app, in the **Client ID** field.
12. Paste the **Scopes ID** copied from the Nightfall app, under **OAuth Scope** fiel&#x64;**.** Use comma to add multiple scope IDs.&#x20;
13. Click **AUTHORIZE.**&#x20;

<figure><img src="https://content.gitbook.com/content/i2neFs5a4fa47QifSoot/blobs/iDh5eq2PMn3adImAlzLa/image.png" alt=""><figcaption></figcaption></figure>

14. Return to the Nightfall app and click **Next Step**.

<figure><img src="https://content.gitbook.com/content/i2neFs5a4fa47QifSoot/blobs/cJ6OzFtjjMbOrGx8U8eh/image.png" alt=""><figcaption></figcaption></figure>

15. Click **Connect**.

<figure><img src="https://content.gitbook.com/content/i2neFs5a4fa47QifSoot/blobs/au7ZUEbl2bMgkYWKQ3OD/image.png" alt=""><figcaption></figcaption></figure>

Once the installation is completed, you can view the details of your Google Drive in the Nightfall app.

<figure><img src="https://content.gitbook.com/content/i2neFs5a4fa47QifSoot/blobs/qXUgMXCuC1nbuhRFzsIU/image.png" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Once the installation is completed, Nightfall connects to your Google Workspace account and fetches all the domains. In the above image, you can see that 3 domains are fetched. These three domains were already present in your Google Workspace and are considered to be internal. You can add additional domains by clicking the ellipsis menu at the right end and selecting **Manage Domains**.
{% endhint %}

<figure><img src="https://content.gitbook.com/content/i2neFs5a4fa47QifSoot/blobs/h1HMDnPw448VtymygKYt/image.png" alt=""><figcaption></figcaption></figure>
