# Delegating Domain-Wide Authority in Google Workspace

## Delegating Domain-Wide Authority

Learn how to connect Google Workspace to Couchdrop with a Client ID and domain-wide delegation

### Introduction <a href="#introduction" id="introduction"></a>

To connect a Google Workspace account to Couchdrop you need to delegate domain-wide authority so Couchdrop can access your users and migrate them automatically.

### Requirements <a href="#requirements" id="requirements"></a>

Delegating Domain-Wide Authority requires the following:

* A Google Workspace Administrator Account to access the Admin Console
* Familiarity with the Google Admin Console
* Client ID for Google generated in Couchdrop when configuring a Google Workspace connection

### Configuration Steps <a href="#configuration-steps" id="configuration-steps"></a>

1. [Login to the admin console ](https://admin.google.com/)for your Google Workspace domain.
2. Select the **Security** tab. If you don't see **Security**, select **Show More** from the bottom of the menu list.
3. Choose **Access and data control** and then **API controls**.
4. In the **Domain wide delegation** section, choose **MANAGE DOMAIN WIDE DELEGATION**.
5. In the **API clients** section, click **Add new**. Paste the Client ID generated from Couchdrop into the **Client ID** field.
6. In the **OAuth scopes (comma-delimited)** field, paste the following:

```
https://www.googleapis.com/auth/drive,https://www.googleapis.com/auth/drive.file, https://www.googleapis.com/auth/admin.directory.user, https://www.googleapis.com/auth/admin.directory.user.readonly, https://www.googleapis.com/auth/admin.directory.user.security
```

7. Click **Authorize**. Test that the connection in Couchdrop is successful to complete your configuration.

For more information on domain-wide delegation, see this Support article from Google: <https://support.google.com/a/answer/162106?hl=en>&#x20;


---

# 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.couchdrop.io/connections/connect-storage/google-workspace/delegating-domain-wide-authority-in-google-workspace.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.
