11/2023
Cisco Identity Intelligence can analyze data from Google Workspace (formerly G Suite) and Google Cloud Platform (GCP) to provide insights into user identities and application activity. This document will walk you through the process of setting up the Identity Intelligence Google Workspace integration.
Overview
The integration can collect Google Cloud data, Google Workspace data, or both. We recommend collecting both if your organization uses both. Complete these steps in order to connect Identity Intelligence to your Google environment:
Create the GCP service account that Identity Intelligence uses for access.
Set up Google Cloud collection, if you collect Google Cloud data.
Set up Google Workspace collection, if you collect Google Workspace data.
If you are unsure, refer to the configuration checklist at the end of this page.
Create the GCP service account
Every install option needs this service account, including Google Workspace only: Identity Intelligence authenticates as it to collect both Google Cloud and Google Workspace data. The project you create it in only hosts the service account and doesn't limit what Identity Intelligence collects.
Login to the GCP console for your organization. Using the project selector, choose or create a project to host the service account that Identity Intelligence will use for access.
Create a GCP service account for Identity Intelligence to use. Navigate to IAM > Service Accounts > Create Service Account.

Provide a name and description for the account

Choose Add Key > Create New Key on the GCP service account you just made. Store the downloaded key file somewhere safe; you will need to upload it when you set up the integration in Identity Intelligence.


Note the Unique ID / OAuth2 client ID. If you collect Google Workspace data, you will need it when you delegate domain-wide authority to the service account.

Set up Google Cloud collection
If you are only collecting Google Workspace data, skip this section and continue with Set up Google Workspace collection.
To complete this section, you need to be able to enable APIs in the project that hosts the GCP service account and to grant IAM roles on your GCP organization.
In the GCP console, select the project that hosts the GCP service account.
Navigate to Billing and make sure billing is enabled for the project. For the expected cost, see Estimate Google Cloud costs.
Navigate to APIs and Services -> Enable APIs and Services

Search for and enable each of the following APIs:
Alternatively, enable all of these APIs at once with the gcloud CLI, replacing
PROJECT_IDwith the ID of the project that hosts the service account:Navigate to the IAM panel on the sidebar, and use the project selector to select the organization (top-level) context. Note that on the project picker it says "Organization" in the Type column for the correct resource. When you are on the right page you should see that it says "Permissions for organization <your organization>"


Select Grant Access at the top of the table

In the access form, enter the email address of the GCP service account in the New principals field (for example,
SERVICE_ACCOUNT_EXAMPLENAME@PROJECT_ID.iam.gserviceaccount.com), and assign each of the roles listed below, selecting Add another role for each one. Select Save
GCP IAM roles
Assign all of the following roles to the GCP service account at the organization level:
Agent Platform Viewer
Agent Registry API Viewer (Beta)
BigQuery Metadata Viewer
Cloud Asset Viewer
Cloud Run Viewer
Deny Reviewer
Discovery Engine Viewer
Monitoring Viewer
Organization Viewer
Private Logs Viewer
Secret Manager Viewer
Security Reviewer
Alternatively, assign all of these roles at once with the gcloud CLI, replacing ORGANIZATION_ID with your organization ID (shown by gcloud organizations list) and SERVICE_ACCOUNT_EMAIL with the email address of the GCP service account:
Enable GCP Audit Logging
Identity Intelligence uses Cloud Audit Logs as indicators of service account activity. Admin Activity audit logs are always on, but Data Access audit logs, which record when service accounts read or change data, are off by default. Enable them at the organization level, as explained in the following Google docs: Configure Data Access audit logs
In the GCP console, navigate to IAM & Admin > Audit Logs and use the project selector to select your organization.
In the Data Access audit logs configuration table, filter for and select the Identity and Access Management (IAM) API.
In the panel, select Admin Read, Data Read and Data Write, then select Save.
Repeat steps 2 and 3 for the Agent Platform API (formerly Vertex AI API).
Data Access logs can increase your Cloud Logging costs. For the expected cost, see Estimate Google Cloud costs.
Set up Google Workspace collection
If you are only collecting Google Cloud data, skip this section and continue with Create the integration in your Identity Intelligence tenant.
This is where you will set up the Google Workspace super admin user and delegate domain-wide authority to the GCP service account. You need super admin access to your Google Workspace account, and you need to be able to enable APIs in the project that hosts the GCP service account.
In the GCP console, select the project that hosts the GCP service account and navigate to APIs and Services -> Enable APIs and Services

Search for Admin SDK API and select Enable. Then enable the Chrome Policy API in the same way.

Alternatively, enable both APIs with the gcloud CLI, replacing PROJECT_ID with the ID of the project that hosts the service account:
In the Google Workspace Admin console, create a new account for the GCP service account to impersonate. Use an account dedicated to Identity Intelligence rather than one belonging to a person. Save this user's email for use in the Identity Intelligence setup section. Use this user email whenever these instructions refer to the Google Workspace super admin user.
Assign the Super Admin role to the Google Workspace super admin user, as explained in the following Google docs: https://support.google.com/a/answer/172176
Navigate to Directory > Users and select the Google Workspace super admin user
Select Admin roles and privileges
Next to the Super Admin role, select the slider so it's marked Assigned, then select Save
Delegate domain-wide authority to the GCP service account created in Create the GCP service account, as explained in the following Google docs: https://developers.google.com/identity/protocols/oauth2/service-account#delegatingauthority

Select the Add New button

In the Add a new client ID form:
In the Client ID field, enter the Unique ID / OAuth2 client ID of the GCP service account, which is tied to the JSON keys downloaded
In the OAuth scopes (comma-delimited) field, add the scopes in the code block below. Select Authorize
Below are the same scopes, one per line, for reference:
https://www.googleapis.com/auth/admin.directory.user.readonlyhttps://www.googleapis.com/auth/admin.directory.group.readonlyhttps://www.googleapis.com/auth/admin.directory.group.member.readonlyhttps://www.googleapis.com/auth/admin.directory.orgunit.readonlyhttps://www.googleapis.com/auth/admin.directory.device.mobile.readonlyhttps://www.googleapis.com/auth/admin.directory.device.chromeos.readonlyhttps://www.googleapis.com/auth/admin.reports.audit.readonlyhttps://www.googleapis.com/auth/admin.directory.user.securityhttps://www.googleapis.com/auth/admin.directory.rolemanagement.readonlyhttps://www.googleapis.com/auth/admin.directory.domain.readonlyhttps://www.googleapis.com/auth/admin.directory.device.chromebrowsers.readonlyhttps://www.googleapis.com/auth/chrome.management.policy.readonly
Create the integration in your Identity Intelligence tenant
Login to Identity Intelligence with an Admin role.
From the Integrations page, select the Add Integration button and select Google Workspace
Enter a name for the integration, such as Google-customername. This name will be used to identify the given integration instance throughout the Identity Intelligence interface
Under Service Account Keys, upload the JSON key file created for the GCP service account
Choose what Identity Intelligence collects based on what your organization utilizes:
If you skipped Set up Google Cloud collection, select My organization does not use Google Cloud.
If you skipped Set up Google Workspace collection, select My organization does not use Google Workspace.
If you would like Identity Intellignece to collect Google Workspace data and you have completed the steps for Google Workspace listed above, fill in the following fields in the form:
Customer ID: your Google Workspace customer ID, found in the Admin console under Account > Account settings > Profile. Each customer ID can be used by only one integration in your Identity Intelligence tenant.
Administrator account: the email address of the Google Workspace super admin user.
Select Save. This will automatically trigger an initial connectivity test
Configuration Checklist
If you are not seeing data or account activity that you expect to see, or there are connectivity test failures, these are the things to check:
GCP Service Account
The GCP service account has been created in a GCP project.
The key for the GCP service account that Identity Intelligence is using is still present and enabled in GCP IAM for its project.
Google Cloud collection
The GCP service account has been given all of the roles listed above at the organization level in IAM in GCP
All of the APIs listed in Set up Google Cloud collection have been enabled in the project that hosts the GCP service account
Data Access audit logs are enabled for the IAM API and the Agent Platform API at the organization level
Billing is enabled for the project that hosts the GCP service account
Google Workspace collection
The Admin SDK API and the Chrome Policy API have been enabled in the project that hosts the GCP service account
The Google Workspace super admin user has been created
The Google Workspace super admin user has the Super Admin role assigned
The GCP service account has been given Domain-Wide-Delegation with the scopes listed above
The Google Customer ID has been entered correctly in Identity Intelligence. Note that there can only be one integration per Google Customer ID in an Identity Intelligence tenant
The email of the Google Workspace super admin user has been entered correctly in Administrator account in Identity Intelligence and exactly matches the user currently intended
Identity Intelligence Configuration
The My organization does not use Google Cloud and My organization does not use Google Workspace checkboxes match the sections you completed
The service account key for the GCP service account that Identity Intelligence is using is currently enabled in GCP. If in any doubt, generate a new key in the GCP console and upload it to Identity Intelligence
Service Account collection from projects with VPC Service Controls
Google's VPC Service Controls feature allows you to restrict the IPs from which GCP API calls — such as requests to list service accounts — can be made. Identity Intelligence will skip collection from projects in which VPC Service Controls prohibit the required API calls. The VPC Service Controls docs in google show how you can add an exception allowing our IPs to access the the IAM and Cloud Logging resources within the service perimeter. In the Identity Intelligence Add Integration dialog, you can see the list of IP addresses that Identity Intelligence uses to collect integration data. Note that these IPs depend on the region in which your tenant is deployed, so you should not rely on the specific values in this image.

Rotate the GCP service account key
To replace the JSON key that Identity Intelligence uses for the GCP service account:
In the GCP console, navigate to IAM > Service Accounts, select the GCP service account, and choose Keys > Add Key > Create New Key. Download the new JSON key file
In Identity Intelligence, on the Integrations page, select the 3 dot menu for the Google integration and select Edit Settings
Select Reset Credentials, upload the new JSON key file, and select Save
From the same 3 dot menu, select Test Connectivity to confirm the connection
Estimate Google Cloud costs
Most of this integration adds no Google Cloud charges. Two parts can, and both have a free monthly allotment: - Agent Platform usage data and Data Access audit logs
Agent Platform usage data
Identity Intelligence reads Agent Platform (formerly Vertex AI) usage data through the Cloud Monitoring API, which Google bills to the project that hosts the GCP service account. Google charges $0.50 per million time series returned, after the first 1 million time series each month per billing account (Google Cloud Observability pricing).
Identity Intelligence collects this data once a day. Each collection reads 2 metrics for each Agent Platform agent, and each metric returns one time series for each response code the agent returned in the last 30 days. For example, 50 agents that each returned 5 different response codes add up to 500 time series per collection, or about 15,000 a month, well within the free allotment. The free allotment covers more than 3,000 such agents.
Data Access audit logs
Cloud Logging stores Data Access audit logs where the logged activity happens. Google charges $0.50 per GiB of logs stored, after the first 50 GiB per project each month (Google Cloud Observability pricing). The volume depends on how much your service accounts and Agent Platform agents are used:
10 GiB
$0
100 GiB
$25
1,024 GiB
$487
Last updated