Google Workspace (Formerly G Suite) Setup for Workbench
Prerequisites
You must have access to a Google user with the Super Admin role to create a service account.
You must be an Organization Admin user in Workbench.
Step 1: Provision Expel Service Account in Google Workspace
Go to the Google Developers Console and sign in as a Super Admin.
Under IAM & Admin, click Manage Resources.
Click Create Project.
Configure the project details as follows:
Project name - enter "ExpelAPI".
Organization - enter the name of your organization.
Location - enter the location of your organization.
Click Create.
Each project uses its own set of APIs. For Expel to communicate with Google Workspace APIs, we need to enable the Admin SDK for the newly created project. Navigate to the newly created project.
Search for "Admin SDK" and open.
Enable the Admin SDK for the new project.
Navigate to Menu > IAM & admin > Service accounts.
Click Create Service Account.
Configure the service account as follows:
Service account name - enter "ExpelAPI".
Service account ID - enter "ExpelAPI".
Service account description - enter "ExpelAPI".
Click Done.
In the IAM & Admin section, click Service Accounts. For the service account that relates to this integration, click the Actions button and then Manage keys. In the Add Key section, click Create new key. Select JSON and click Create. After you click Create, a JSON file is downloaded. Keep the JSON file in a safe place; it contains the credentials for this service account.
Enable domain-wide delegation for the service account:
Back on the Service Accounts screen, click Actions and then click Manage Details.
Under the Details section, select Enable Google Workspace Domain-wide Delegation.
After the service account is created, in the Details area, copy Unique ID.
Grant the service account the required API permission scope:
Open the Google Workspace admin console. https://admin.google.com/ac/owl/domainwidedelegation
Navigate to Security > API Controls > Manage Domain Wide Delegation.
Click Add New.
Client Name - enter The Client ID that we saved from our Service Account in the earlier step.
API Scopes - You can copy and paste all the scopes below, or add the scopes for retrieving organizational units individually. Note they are comma-delimited.
https://www.googleapis.com/auth/admin.directory.group.readonly, https://www.googleapis.com/auth/admin.directory.user.readonly, https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly, https://www.googleapis.com/auth/admin.directory.orgunit.readonly, https://www.googleapis.com/auth/admin.reports.audit.readonly, https://www.googleapis.com/auth/admin.reports.usage.readonly
Step 2: Configure Google Workspace in Workbench
Now that you have the correct access configured and noted the credentials, you can integrate your tech with Workbench.
Navigate to Organization Settings > Security Devices.
Select Add Security Device.
Search for and select Google Workspace.

Fill in the following information:
Name - enter a name that might help you more easily identify this integration, such as “CompanyName Google Workspace”; this name will display in Workbench under the Name column, and is a text string that you can filter on.
Location - enter the location of your integration, for example “cloud.” This is also a text string that you can filter on, so we recommend being consistent with location naming across your Expel integrations.
Administrator username - enter the email address of the Super Admin that created the service account in Step 1.
Service Credentials JSON - enter the contents of the JSON file for the service account generated in Step 1.
API scopes - enter the API Scopes from Step 1.
Select Save.
On the console access screen, select No thanks, I will not provide console access from the dropdown.
Select Save.
Your device should be created successfully within a few seconds. A few reminders:
After your connection is healthy, it will take some time for your device to begin polling and receiving data.
To check on the status, select the downward arrow for your device in the first column and choose View details.
Polling will happen first; data will be received after that. You must refresh the page to see updates.
If your device does not begin polling within 15 minutes, and does not begin receiving data within 30 minutes, contact our support team for help.
To check if alerts are coming through, navigate to Dashboards > Alert Analysis. Scroll to the device you want to check, and select the Expel Alerts tab to reveal more alert information. It can take 36 to 72 hours for alerts to appear after setup, as we tune your device.
Last updated
Was this helpful?

