> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cotool.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Workspace Admin

> Connect Cotool to Google Workspace with domain-wide delegation

Cotool reads Google Workspace audit logs, users and Alert Center alerts, and can revoke a user's sessions or reset their password. It connects only through **domain-wide delegation**: a super admin authorizes a service account that Cotool creates for your organization. Cotool stores no Google tokens.

## Connect

1. In Cotool, open **Integrations**, choose **Google Workspace Admin**, and click **Connect**.

2. Click **Get client ID**. Cotool creates the service account for your organization and shows its client ID.

3. As a super admin, open the Google Admin console at **Security > API controls > Domain-wide delegation** and click **Add new**.

4. Paste the client ID and the OAuth scopes from the Cotool dialog, then click **Authorize**:

   ```
   https://www.googleapis.com/auth/admin.reports.audit.readonly
   https://www.googleapis.com/auth/admin.directory.user.readonly
   https://www.googleapis.com/auth/admin.directory.user.security
   https://www.googleapis.com/auth/admin.directory.user
   https://www.googleapis.com/auth/apps.alerts
   ```

5. Back in Cotool, enter the admin email Cotool acts as. Use a super admin, or an admin whose role can read and update users and read reports.

6. Optionally, let Cotool switch to another super admin if Google stops accepting that admin, for example after they leave. Each switch is recorded in the audit log.

7. Click **Verify and connect**.

Google can take a few minutes, and occasionally up to 24 hours, to apply a new delegation. If verification fails right after you authorize it, wait and try again.

## Connections made with Google sign-in

Cotool no longer offers connecting Google Workspace Admin by signing in with Google. A connection made that way keeps working. To move it to domain-wide delegation, follow the steps above; saving the delegation replaces the sign-in. Alert Center actions are available only with domain-wide delegation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.