# Google Drive

## Setup Domain Wide Delegation

1. In [Google Workspace Admin](https://admin.google.com), go to Security > Access and Data Control > API Controls > Domain Wide Delegation (manage domain wide delegation) > Add New
2. Enter the unique service account ID provided by Teleskope
3. Under Scopes, please input the following scopes separated by a comma. We need these scopes to be able to scan personal and shared drives as well as when the user last viewed those resources:
   1. <https://www.googleapis.com/auth/drive>
   2. <https://www.googleapis.com/auth/admin.directory.user.readonly>
   3. <https://www.googleapis.com/auth/admin.reports.audit.readonly>
   4. <https://www.googleapis.com/auth/admin.directory.group.readonly>
   5. <https://www.googleapis.com/auth/drive.labels.readonly>
   6. <https://www.googleapis.com/auth/drive.admin.labels.readonly>

## Create Teleskope Super Admin User

1. In Google Workspace Admin, go to Directory > Users > Add new user and create a user for the Teleskope service account (e.g. <teleskope@company.com>)
2. Ensure that the service account user is licensed (cloud identity is sufficient).
3. Go to Account > Admin roles, and assign the Teleskope service account to the Super Admin role.
4. Share the email of the Super Admin user created above with Teleskope.


---

# 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://docs.teleskope.ai/connectors/saas/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.
