Google Workspace
This guide walks you through enabling the G Suite Alert Center API, creating a service account and P12 key, delegating domain-wide access, and preparing the deliverables for ThreatDefence.
Step 1: Enable API
Enable the G Suite (Admin SDK) API
Open the Google Cloud Console.
Go to APIs & Services → Library.
If no project exists, create one:
Click the project dropdown → New Project.
Provide a project Name and Location.
Select the newly created project and click Open. &#xNAN;Tip: wait for the project creation notification to complete before proceeding.
Search for Admin SDK API and click Enable.
Step 2: Create a Service Account
Open Service Accounts
Click the top-left Menu.
Navigate to IAM & Admin → Service Accounts.
Create the Service Account
Click Create Service Account and enter a Service account name. &#xNAN;(Optional) Add a description.
Click Create.
Assign a Role
Assign Project Viewer (or a more restrictive role suitable for your governance).
Click Continue.
Generate a P12 Key
Open the service account and click Manage Keys.
Click Add Key → Create New Key.
Choose key type P12 and click Create.
Download the P12 file when prompted and store it securely.
Private key password: set to
notasecret
.Record the file path/name for future reference, then Close.
Step 3: Add the Service Account to G Suite (Domain-Wide Delegation)
Open Admin Console
Go to your G Suite Admin console.
Search for API Controls.
Manage Domain-Wide Delegation
Click Manage Domain Wide Delegations.
In Authentication, click Add New.
Authorize the Client
In Client ID, enter the OAuth 2 Client ID of the service account (found in IAM & Admin → Service Accounts in Cloud Console).
In OAuth scopes, add:
https://www.googleapis.com/auth/admin.reports.audit.readonly
Authorize Scopes Click Authorize.
Deliverables
Email the following to [email protected]:
P12 Key
The downloaded .p12 file (stored securely).
Service Account Email Address
Found under IAM & Admin → Service Accounts in Google Cloud Console.
Administrator Email Address
The admin email used when configuring domain-wide delegation.
Last updated