# Install Nightfall for Google Drive

This document explains the steps to install the Nightfall DLP for Google Drive. Nightfall recommends that you read the [requirements](https://help.nightfall.ai/google-drive/getting_started/requirements "mention") document for Google drive installation and then proceed with this document.

To install Nightfall for Google Drive:

1. Log in to Nightfall.
2. Click **Integrations** from the left menu.
3. Click **Manage** on the Google Drive integration.&#x20;

<figure><img src="https://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2FuKMFXzwoA0iDe9ICOEFh%2Fimage.png?alt=media&#x26;token=aef4218a-cf71-4c50-b096-560225b504a2" alt="" width="563"><figcaption></figcaption></figure>

4. Click **Begin Setup**. 

The access permission page is displayed as follows. Copy the **client ID** and **OAuth Scope** generated. Store these values securely. You will require them to configure [Google Drive Labels](https://help.nightfall.ai/google-drive/getting_started/labels#adding-scope-of-google-drive-labels-api) (step 5).

<figure><img src="https://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2FEIn4WanSSP98GgHtBiNN%2Fimageedit_3_4794093004.jpg?alt=media&#x26;token=b01603a6-1948-49bf-ac97-106c0e2795de" alt="" width="563"><figcaption></figcaption></figure>

5. In a new browser tab, login to your Google Workspace with an admin account.
6. Click the menu icon.
7. Select **Admin**.

<figure><img src="https://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2Fz75SjjtChmZP0U6Uw2ut%2F4.png?alt=media&#x26;token=b617c400-1efd-4296-9cdb-e62b39eb7336" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2FabWT9IzFO30POACkbIGL%2Fimage.png?alt=media&#x26;token=e586b8dc-f616-430e-83bc-ce9f19130fbb" alt="" width="375"><figcaption></figcaption></figure>

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

<figure><img src="https://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2FfvqhnHJ9yVkFFyUMkUTJ%2F5.png?alt=media&#x26;token=4be372e7-bead-4b2f-b404-890190006b53" alt="" width="563"><figcaption></figcaption></figure>

10. Click **Add New**.

<figure><img src="https://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2FJQqTugVgpR0OkGyoehTa%2Fimage.png?alt=media&#x26;token=6bfa2a58-0113-4142-bd31-69455e8cdd04" alt="" width="563"><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://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2Ft9fxRnr5d9bQlbYbZ4YQ%2Fimage.png?alt=media&#x26;token=6b5fae6e-3829-4608-a4ff-ed36909f71fc" alt="" width="375"><figcaption></figcaption></figure>

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

<figure><img src="https://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2F37FqZ0LkjP07qdPOB6Ti%2Fimageedit_3_4794093004.jpg?alt=media&#x26;token=64616385-8a58-4c6f-8f14-694911beae52" alt="" width="375"><figcaption></figcaption></figure>

15. Click **Connect**.

<figure><img src="https://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2FUWwiLxKu7jGFjuLdF8LW%2Fimage.png?alt=media&#x26;token=f45ca147-f843-4a0d-a2cf-045444a16522" alt="" width="375"><figcaption></figcaption></figure>

{% hint style="danger" %}
**Note**

Once the installation is complete, Nightfall needs to sync data from your Google Drive. This process takes a few minutes. You can create policies before the sync process is completed. However, the process of scanning files begins once the sync is completed.&#x20;
{% endhint %}

{% hint style="info" %}
Once the installation and sync 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 internal to your organization. Nightfall also allows you to add external domains as internal domains. You can do this by clicking the ellipsis menu at the right end and selecting **Manage Domains**.
{% endhint %}

<figure><img src="https://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2F8hNkdu7aD3Ruax9tYH7M%2Fimage.png?alt=media&#x26;token=6faf5daf-f018-4e70-9bc2-d7fa4dd30da7" alt=""><figcaption></figcaption></figure>

The **Manage Domains** window is displayed as follows.

<figure><img src="https://2214688951-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mg3wgFIu8T7XAT1u-f_%2Fuploads%2FdeLn6KgJg0DSrAXQHgLK%2FScreenshot%202024-08-14%20at%208.00.15%E2%80%AFAM.png?alt=media&#x26;token=1505b605-d678-4a53-bb16-44696aa2991a" alt="" width="563"><figcaption></figcaption></figure>

Enter the domain name in the **Domain Name** field, hit the enter key, and click **Confirm**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.nightfall.ai/google-drive/getting_started/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
