Connect your Workspace
Open Integrations → Google Chat → Connect in the Serval workspace you want to connect. Each workspace has its own Google Chat connection and can authorize a different Google Workspace, including a sandbox Workspace. You do not need to connect the separate Google Workspace integration first. New connections authenticate with a Google Cloud service account that has domain-wide delegation for read-only Directory access. The connection authorizes Directory identity and recipient checks. Chat messages still use the Serval Chat app and its operator-managed bot configuration; the service account doesn’t create or replace that Chat app.- In your Google Cloud project, enable the Admin SDK API and create a service account with a JSON key. Keep that key private.
- As a Workspace super administrator, open Security → Access and data control
→ API controls → Manage domain-wide delegation in Google Admin. Authorize
the service account’s numeric client ID for exactly these scopes:
https://www.googleapis.com/auth/admin.directory.customer.readonlyhttps://www.googleapis.com/auth/admin.directory.user.readonly
- In Serval, enter the Workspace’s primary domain, the primary email address of a delegated administrator with read access to customer information and users, and the JSON key.
- Select Connect. Serval verifies both the Workspace customer and the administrator’s Directory record before saving encrypted credentials to this workspace. No Google OAuth redirect URI is needed.
Connections that use Google sign-in or your own OAuth app
Connections set up earlier with Sign in with Google or your own OAuth app keep working and reconnect with the same method.- Sign in with Google: reconnect signs in again as an administrator of the
connected Workspace through Serval’s managed app registration. If Google reports
redirect_uri_mismatch, contact Serval support and include the error details shown by Google. Changing the account you sign in with doesn’t correct a missing redirect URI. - Your own OAuth app: reconnect keeps the same Workspace and OAuth client. The client’s Authorized redirect URIs must still include the exact redirect URI shown in Serval. Leave the secret blank to keep its saved value, or provide a replacement secret for that same client. Secrets and tokens are stored with the connection’s encrypted credentials.

