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

# Connect Gmail Workspace

> Connect admin-approved Gmail mailboxes through daoco's Google Workspace integration gateway.

Gmail Workspace is a **Conditional** Mail & Calendar integration. Use it when a Google Workspace super admin wants to authorize daoco for approved company mailboxes or groups. daoco connects through a Google Workspace [MCP](/connections/integrations#what-is-mcp) gateway after admin approval.

## Connect Gmail Workspace

<Steps>
  <Step title="Open the Gmail Workspace card">
    In daoco, open **Connections** -> **Integrations** -> **Mail & Calendar** and choose **Gmail Workspace**.
  </Step>

  <Step title="Copy the domain-wide delegation client ID">
    Copy the client ID shown in daoco. daoco's Workspace domain-wide delegation client ID is:

    ```text theme={null}
    101332151355781817835
    ```
  </Step>

  <Step title="Approve daoco in Google Admin Console">
    A Google Workspace super admin opens **Security** -> **Access and data control** -> **API controls** -> **Manage Domain Wide Delegation**, adds the client ID, and authorizes these scopes:

    ```text theme={null}
    https://www.googleapis.com/auth/gmail.readonly
    https://www.googleapis.com/auth/gmail.compose
    ```
  </Step>

  <Step title="Enter the boundary in daoco">
    Paste the Workspace domain and exact mailbox or group addresses daoco may use, such as `marketing@acme.com` or `support@acme.com`.
  </Step>

  <Step title="Save the request">
    Choose **Save request** after admin approval is complete.
  </Step>
</Steps>

## Notes

* End users cannot grant company-wide Gmail access with ordinary OAuth consent.
* daoco v1 can create drafts behind approval, but direct send is unavailable.
* Do not send service account JSON keys, private keys, or Google Cloud secrets to customer admins.
