Skip to main content
Forge uses a customer-owned Google OAuth refresh credential to collect directory and administrative context from the Admin SDK. This page describes the identity connection; Gemini usage and Drive attribution use separate connectors and scopes.

OAuth scopes

The connection stores the OAuth client ID, refresh credential, token URI, and validated scopes. Client secrets and refresh tokens are write-only Forge-managed secrets.

Collection

Users resolve to Forge people by normalized primary email. Groups resolve by Google provider ID and then by safe email/name matching. The identity connection does not import Drive label taxonomy or claim that generic Drive audit records are agent activity.

Setup

  1. Enable the Admin SDK in the Google Cloud project that owns the OAuth client.
  2. Authorize the scopes above with an account that can read the target Workspace customer.
  3. Save the OAuth client ID, client secret, refresh token, token URI, and scopes under Settings → Integrations → Google Workspace identity.
  4. Validate the connection, then run an inventory sync.
  5. Compare a known user, group, admin-role assignment, and recent audit event with the Google Admin console.
An access token can validate while an individual Admin SDK collection returns 403. Review the missing scope and the authorizing administrator’s role for that resource rather than broadening all Workspace access.