Configure Google Console
This guide walks you through creating a Google Cloud service account with the required permissions for integration. Complete these steps in the Google Cloud Console and Google Admin Console before configuring the service account.Prerequisites
- Access to the Google Cloud Console.
- Access to the Google Admin Console.
- Google Cloud administrator permissions to create service accounts and manage IAM.
- Google Workspace administrator permissions to configure domain-wide delegation.
Access Service Accounts
- Log in to the Google Cloud Console.
- Select an existing project or create a new project if you haven’t already.
- Navigate to IAM & Admin > Service Accounts.
Create New Service Account
- Click Create Service Account in the toolbar.
- Enter a descriptive Service Account Name.
- Enter an optional Service Account Description to identify the account’s purpose.
- Click Create and Continue.
- Skip the optional grant access steps and click Done.
Generate Service Account Key
The service account key provides authentication credentials used to access Google Workspace APIs.Create JSON Key File
- Locate the service account you just created in the service accounts list.
- Click the three-dot menu (Actions) next to the service account.
- Select Manage Keys from the menu.
- Click Add Key > Create New Key.
- Select JSON as the key type.
- Click Create.
Extract Required Credentials
Open the downloaded JSON key file and locate the following values:- Client Email — The service account email address (example:
service-account@project-id.iam.gserviceaccount.com). - Private Key — The complete private key string, including the
-----BEGIN PRIVATE KEY-----and-----END PRIVATE KEY-----markers. - Client ID — The unique identifier for this service account (you’ll use this in the next section).
Configure Domain-Wide Delegation
Domain-wide delegation grants the service account permission to access user data across your Google Workspace organization.Enable API Access in Google Admin Console
- Log in to the Google Admin Console.
- Navigate to Security > API Controls > Domain-wide Delegation.
- Click Add New in the Domain-wide Delegation section.
Add Service Account Client
- Enter the Client ID from your service account JSON file in the Client ID field.
- Add the required OAuth Scopes in the OAuth Scopes field. Enter each scope as a comma-separated list:
https://www.googleapis.com/auth/admin.directory.user.readonlyhttps://www.googleapis.com/auth/admin.directory.group.readonlyhttps://www.googleapis.com/auth/admin.directory.orgunit.readonlyhttps://www.googleapis.com/auth/admin.directory.domain.readonly
- Click Authorize.
Retrieve Admin Email
The platform requires a Google Workspace administrator email address to impersonate when making API calls. Identify a Google Workspace administrator account in your organization and note the email address. This email wont appear in the JSON key file and must be obtained separately from your Google Workspace admin list.Next Steps
You now have all the credentials required to configure the Google service account:- Account Name — A descriptive name.
- Client Email — Service account email from the JSON key file.
- Admin Email — Google Workspace administrator email address.
- Private Key — Complete private key string from the JSON key file (including BEGIN and END markers).