Personal Google connections for Enterprise administrators
Use this guide when each person should decide which AI employees may use their Google account. The account holder must connect and consent personally. For a shared company connection, OAuth client creation or domain-wide delegation, start with Connect Google.
Prepare the installation
Section titled “Prepare the installation”- Configure the Google application in Manage → Integrations → Google and enable Google Workspace integration. A person’s connection never changes that installation-wide switch.
- Enable Security → Credential protection. Personal connections require a supported macOS or Windows keychain, Docker with the person-credentials overlay, or the native Linux protected system service. Ordinary Docker and Linux user services remain unsupported. Password-only protection, an unavailable keychain or separate key, or unreadable saved credentials refuse access.
- Register the exact return address shown by My connections in the Google client. This personal return address ends in
/api/me/google/callback; the shared-connection wizard uses/api/mcp/oauth/callback. Register the address for the flow you are using. An approved HTTPS dashboard uses its dashboard address; other origins use local HTTP and offer a return-URL field. Match the host, port and path exactly. Do not expose a local callback publicly to work around a failure. - Check Google’s account and application restrictions in the setup guide. External applications in Testing need renewed authorization every seven days. Restricted Gmail access can require Google verification and a security assessment before production use.
- Review the Google data disclosure and the configured AI provider’s terms. Google Workspace data must not train or improve a generalized model. Use a suitable local model or leave Google disconnected if you cannot confirm the provider follows this restriction.
Use the dedicated Google connection screens. Custom OAuth or remote-server setup cannot replace the required Google disclosure. Dataset builds, dataset exports and new fine-tuning jobs remain disabled for the installation because exclusion of Google Workspace data cannot yet be guaranteed. Existing jobs can be viewed or cancelled, and datasets deleted. Older connections must be reconnected with the current disclosure before they can be used or refreshed.
Ask the account holder to connect
Section titled “Ask the account holder to connect”- Have the person sign in to the Enterprise dashboard and open My connections. Ask them to sign in again if the dashboard requires a fresh login.
- They read and accept the data disclosure, choose Connect my Google, and approve the requested services in Google’s window. A service they decline remains unavailable.
- They return to My connections. If the local return page cannot load, they paste its complete address-bar URL into the original dashboard’s return-URL field. That URL must remain private. Completion needs the same person and login that started the attempt, within ten minutes; an expired or replaced attempt must be restarted.
- They check the connected Google email. It can differ from their DuDuClaw sign-in email.
- They allow or deny access for each employee. Choosing an account as administrator does not supply the account holder’s consent.
Enable meeting-recording import separately
Section titled “Enable meeting-recording import separately”The account holder opens My connections and enables meeting-recording access through a separate consent step. Ordinary initial personal connection does not request Drive or Meet permissions. This opt-in adds exactly https://www.googleapis.com/auth/drive.file and https://www.googleapis.com/auth/meetings.space.readonly to the existing Google grant. A declined scope leaves import unavailable. Previously granted broader permissions are not automatically removed.
For existing employee Drive tools or Google remote MCP, the account holder can separately choose Enable employee Drive tools in My connections after connecting. This requests https://www.googleapis.com/auth/drive.readonly, covering all Drive files the Google account can access. It is a separate consent from recording import and is not needed for importing recordings; employee consent and role restrictions still apply. Complete one additional-consent flow at a time.
The gateway records local consent separately for basic services, meeting recordings and employee Drive tools, and binds it to the sealed credential and its authority record. A capability needs both the provider scope and the matching local purpose consent. Extra drive.readonly or drive scopes returned during meeting consent cannot enable employee Drive tools. Incremental consent preserves earlier local purposes and must retain every previously held provider scope; publication also checks the original credential revision. Missing scopes or a concurrent credential change leave the old credential unchanged. Records without local purpose consent require reconnection. Reconnecting basic services resets local purposes to basic services, so recording access and employee Drive tools must then be enabled separately again.
drive.file works with Google Picker for existing recordings that this app did not create, so import does not request drive.readonly. Google permits creating and modifying selected/shared files under drive.file; DuDuClaw’s import uses only read requests. Search in DuDuClaw lists audio/video files already shared with the app. Google Picker can select additional files, including a recent Meet recording that has not been shared yet. See Google’s scope guidance and Picker setup.
The administrator must enable Google Drive API, Google Meet API and Google Picker API in the OAuth application’s Google Cloud project. Use a Web application OAuth client, add the dashboard’s origin to its authorized JavaScript origins, and retain the exact personal callback URI registered above. Configure the browser key and numeric project number in config.toml:
[integrations.google_meeting_picker]developer_key = "your-browser-restricted-google-picker-key"app_id = "123456789012" # Google Cloud project number, not project IDThe key and project number are public browser configuration, not OAuth client secrets. Use the same project as the Google OAuth client. Restrict the key to Google Picker API and the required website origins; Google’s current Picker instructions also require https://docs.google.com/* because Picker runs in its iframe. Do not put a server or transcription API key here. Missing or invalid configuration keeps Picker unavailable.
Picker uses Google Identity Services to request a short-lived browser token with only drive.file and include_granted_scopes=false. It may ask the person to confirm access again. That token stays in the Picker flow and is not saved in browser storage. The gateway’s saved access/refresh tokens are never sent to the browser. Imports use the signed-in person’s gateway connection; switching accounts in a Google window does not switch the gateway to another person’s account.
On Meeting transcripts, the person selects a file and confirms sending it to a chosen employee and the configured transcription provider. This does not authorize the employee to browse Drive. Meet references are available only under Google’s own access rules; the recording file may require a separate sharing grant. See Google’s artifact access rules and Meeting transcripts.
Every import requires a server-issued confirmation receipt. It proves that a dashboard user authenticated by JWT explicitly registered and confirmed this exact Drive file ID for this exact receiving employee within the last five minutes. Employee/MCP tokens cannot register it. The receipt is single use and bound to that user, employee and file ID; a new confirmation for the same user and employee replaces the previous receipt. The dashboard registers the file only when the user confirms the import. Missing, expired, reused or mismatched receipts are rejected. An admitted import attempt consumes the receipt even if later checks fail, so retry with a new confirmation. The server additionally checks Drive metadata for isAppAuthorized=true under that user’s Google connection. Neither the receipt nor this Google flag proves a click in Google Picker: a dashboard caller can explicitly confirm a previously app-authorized file by its known ID.
The dashboard-only POST /api/meeting-drive/selection requires agent_id, file_id and confirm: true, and returns selection_receipt with expires_in. Registration is limited to 20 requests per user per minute, with at most eight unexpired receipts per user. POST /api/meeting-drive/import must submit that receipt.
google_status reads account, status and purpose-filtered scope metadata only: it does not unseal credentials, refresh tokens or return a bearer. The token endpoint accepts an explicit tool allowlist and requires both the matching local purpose and provider scope for personal credentials; status requests and unknown tools cannot obtain a bearer.
The local Drive source record contains the selecting account, Google email, file ID and version. Cancellation, failure and upload expiry remove this record in the same database transaction as the corresponding state change. Other source records, including successful imports, have a 30-day retention period from imported_at, then are removed by the existing cleanup sweep every 60 seconds while the gateway is running; after downtime, cleanup occurs on the next sweep. Transcript files and audit logs have separate retention rules and are not deleted by this source-metadata cleanup.
user.google_connect audits include the consent purpose, a digest of the returned scope set and unexpected scopes. Drive/Meet list reads and early refusals are also audited. These events omit tokens and file contents; import identifiers are hashed.
Disconnecting the personal Google connection blocks later import access locally. To withdraw the added Google grant, review the application in Google’s connected-app settings and reconnect with only the services you want. DuDuClaw rechecks local connection status and actual granted scopes during import; provider-side revocation becomes effective when Google rejects access or refreshed scopes reflect the change. Already imported copies, transcripts and data sent to the transcription provider are not recalled by disconnection. OAuth, Picker and provider behavior still require real-account acceptance.
Choose the employee and sharing rule
Section titled “Choose the employee and sharing rule”- Open the employee’s Connections tab. Choose Follow primary owner or Choose colleague. The selected person must be active and directly bound as an Owner.
- With several Owners, choose a primary Owner explicitly when none is established. Adding a second Owner preserves the original primary Owner. Removing or demoting the primary removes that choice; a sole remaining Owner is used automatically.
- Confirm a primary-Owner change only after checking its effect: the employee’s active browser sessions stop and saved browser sign-ins are cleared. If cleanup fails, the Owner stays unchanged. Changing back does not restore previous sign-ins. Some older saved sign-ins also require a new login after upgrading.
- Set who may ask the employee to use the account. The account holder reviews the listed colleagues, channels and sharing rule before consenting.
- Leave company fallback off unless using company data when the personal account is unavailable is intended and explained to the account holder.
| Requester rule | Who may request use |
|---|---|
bound_people |
People bound to that employee, subject to its existing access rules |
owner_only |
The selected account holder; scheduled work still needs a valid employee, account and consent |
anyone |
Requires explicit administrator confirmation; public website visitors are still refused |
A direct Owner can choose Use my Google or disable Google. They can narrow the requester rule and turn company fallback off, but cannot widen access or choose someone else’s account. Disabling Google turns fallback off and retains or narrows the requester rule; reconnecting their own account still requires the sharing acknowledgement. Use Connections for these changes.
Company fallback is considered only when the personal account is unavailable and an administrator has allowed it. A refused requester, invalid setting or credential-protection failure does not silently become company access. Once a personal-account operation has started, a later error does not switch it to company data. Review the account stated on an approval card; a company fallback may explicitly say its Google email has not been verified.
Test before handing it over
Section titled “Test before handing it over”- Check that the installation switch is on, the selected person remains an active Owner, and that person has consented to this employee.
- Ask the employee to perform one read in each needed service using known accessible mail, calendars or documents. Check both an allowed requester and a requester who should be refused. Avoid writes for connectivity tests.
- Use the dashboard test for the company connection separately.
google_statuscan report account and local authorization information; a status response is not proof that a particular service can be read. The tool is hidden when Google integration or the employee’s Google identity is disabled. - Reconnect when authorization expires or additional services are needed. The current person, ownership, consent and granted permissions are checked again when the account is used. Removing consent blocks future calls immediately; it cannot recall a request already sent to Google.
Employee-specific external API keys identify an employee, not a human requester. Personal-account use through that route needs the administrator’s explicit requesters = "anyone" permission and the usual consent and approval checks. HTTP Google MCP mounts check the actual requester on every operation. Personal-account stdio mounts are refused. Other external integrations need separate acceptance testing.
Disconnect, offboard and review use
Section titled “Disconnect, offboard and review use”- The person chooses Disconnect in My connections, or an administrator disconnects the person under Integrations → Google. Local access and pending connection attempts stop before Google revocation is attempted.
- On offboarding, suspend or remove the person. An inactive person is refused even if credential cleanup could not finish.
- Check whether Google revocation was confirmed. DuDuClaw sometimes disconnects locally only, because revoking one Google grant could also affect another personal account or the company connection. An unknown account, an unreadable store or a failed company-account check also prevents automatic provider revocation. Review Google’s connected-app settings when you intend to revoke the entire grant.
- Company domain-wide delegation is separate; personal disconnection does not remove it. Windows personal disconnection is currently local only. Dynamic remote OAuth disconnection is also local only; revoke those applications in Google yourself.
- Review up to 500 retained entries from the last 30 days. History shows time, employee, tool and success state, without arguments, results or mail content. Log rotation can remove earlier entries. Personal mail visibility does not grant permission to send mail or approve outgoing messages.
If Google revocation is uncertain
Section titled “If Google revocation is uncertain”A timeout, interrupted process or network failure after a revocation request may leave its result unknown. Only Google’s immediate HTTP 200 reply confirms that request. DuDuClaw keeps local access stopped and blocks new Google or remote connections while the uncertainty record exists. There is no automatic expiry and no online button that safely clears it. Restarting, using another client ID or seeing an empty connected-app page does not prove the old request has finished.
- Keep new connections disabled. Preserve the incident report, operation ID, audit evidence and
<home>/locks/google-grant-revoke-uncertain.json. - Revoke the old application’s grant in Google and obtain external confirmation that the earlier request has finished. If that cannot be established, keep the block and contact Google. Waiting an arbitrary period is insufficient.
- Stop every gateway and CLI process using this installation. Only after that external confirmation may an offline operator archive the uncertainty record outside its active filename. Keep the operation ID and reason with the incident evidence; do not delete other credential or lock files.
- Restart and ask the account holder to reconnect. Record that an operator removed the block using external evidence. The product cannot independently prove that a late provider request is now impossible.
Changing client IDs is not recovery proof because different clients can share one Google Cloud project. After an upgrade, restart all gateway and CLI processes before using these controls. Synchronous keychain operations may finish after a displayed timeout, and cancellation cannot undo a change already sent to Google. Inspect Google before retrying a write whose result is unknown, including result_unconfirmed.
Administrator settings and limits
Section titled “Administrator settings and limits”[integrations.google_identity]allowed_domains = ["example.com"]allowed_subject_domains = ["example.com"]
# agent.toml[google]identity = "owner" # or "user:<direct-owner-id>"fallback = "none" # explicit company fallback: "home"requesters = "bound_people" # or "owner_only"; "anyone" needs confirmationallowed_domains limits personal OAuth account domains; empty permits any verified Google account, including Gmail. Google’s hosted-domain value is preferred, otherwise the email domain is used. This check alone does not prove Workspace membership. allowed_subject_domains controls delegated colleague addresses and has different empty-list behavior; see Workspace security. Invalid settings refuse access.
Keep the supported system keychain with installation backups or moves, and do not downgrade while personal connections are in use. Credentials are protected on disk, but an employee with unrestricted Bash under the gateway’s OS user can still bypass product controls or change local data. Give only the capabilities needed. Google’s Gmail draft scope can also send mail through Google’s API, although DuDuClaw’s native draft tool does not send.
The explicitly selected company credential path takes precedence; a failed selected path is reported. Older installations keep legacy source selection until an administrator saves a path. Apps Script covers Gmail, Calendar and Sheets, with seven data actions plus status. It does not support CC, event attendees, Meet or use as a remote MCP bearer. Account selection is not a health check. An operation that may already have reached Google must not be retried through another path automatically.
Out-of-band credential changes cannot always be detected immediately. Timeouts and cancellation cannot force an already-running keychain or local disk operation to stop. Changes between checking settings and sending a request remain a limitation.