# 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="/files/1ZbpLylgjWNqINJI8krO" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/9WFYysZe3n8xEDDBgpai" 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="/files/U2Uf4CnI4RJrrzGtYdrA" 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="/files/dmhPtsGFRrCjlPCrBUci" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/lgLUHWitmmR5XBD9w3kL" alt=""><figcaption></figcaption></figure>

10. Click **Add New**.

<figure><img src="/files/yMzscYfoaAWHOamn5zaI" 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="/files/3hx5A6lJcq2pb9LUF5P8" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/p7DfO9lQoEv3yPxx5v0X" alt=""><figcaption></figcaption></figure>

15. Click **Connect**.

<figure><img src="/files/UHdjtf7J1yEgvHaIIeIi" 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="/files/iiejg1KxL1mQgmWwGHMI" 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="/files/KD417TMXvd3EkeMqoRJu" alt=""><figcaption></figcaption></figure>


---

# 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/data-security-posture-management/nightfall-for-google-drive/installing-nightfall-for-google-drive.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.
