Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Google

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:

  1. Create the GCP service account that Identity Intelligence uses for access.

  2. Set up Google Cloud collection, if you collect Google Cloud data.

  3. 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.

  1. 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.

  2. Create a GCP service account for Identity Intelligence to use. Navigate to IAM > Service Accounts > Create Service Account.

  1. Provide a name and description for the account

  1. 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.

  1. 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.

  1. In the GCP console, select the project that hosts the GCP service account.

  2. Navigate to Billing and make sure billing is enabled for the project. For the expected cost, see Estimate Google Cloud costs.

  3. Navigate to APIs and Services -> Enable APIs and Services

  4. Search for and enable each of the following APIs:

    Alternatively, enable all of these APIs at once with the gcloud CLI, replacing PROJECT_ID with the ID of the project that hosts the service account:

  5. 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>"

  1. Select Grant Access at the top of the table

  2. 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

  1. 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

  1. In the GCP console, navigate to IAM & Admin > Audit Logs and use the project selector to select your organization.

  2. In the Data Access audit logs configuration table, filter for and select the Identity and Access Management (IAM) API.

  3. In the panel, select Admin Read, Data Read and Data Write, then select Save.

  4. 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.

  1. In the GCP console, select the project that hosts the GCP service account and navigate to APIs and Services -> Enable APIs and Services

  2. 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:

  1. 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.

  2. 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

    1. Navigate to Directory > Users and select the Google Workspace super admin user

    2. Select Admin roles and privileges

    3. Next to the Super Admin role, select the slider so it's marked Assigned, then select Save

Google Workspace limits what administrators can see and change about other administrators. The Super Admin role allows Identity Intelligence to collect data and run Remediation Actions for all of your users, including your administrators.

Although Identity Intelligence impersonates a Super Admin, it can only act within the domain-wide delegation scopes you authorize in the next steps. Google rejects any request outside those scopes.

  1. 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

  2. Select the Add New button

  3. In the Add a new client ID form:

    1. 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

    2. 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.readonly

  • https://www.googleapis.com/auth/admin.directory.group.readonly

  • https://www.googleapis.com/auth/admin.directory.group.member.readonly

  • https://www.googleapis.com/auth/admin.directory.orgunit.readonly

  • https://www.googleapis.com/auth/admin.directory.device.mobile.readonly

  • https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly

  • https://www.googleapis.com/auth/admin.reports.audit.readonly

  • https://www.googleapis.com/auth/admin.directory.user.security

  • https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly

  • https://www.googleapis.com/auth/admin.directory.domain.readonly

  • https://www.googleapis.com/auth/admin.directory.device.chromebrowsers.readonly

  • https://www.googleapis.com/auth/chrome.management.policy.readonly

Create the integration in your Identity Intelligence tenant

  1. Login to Identity Intelligence with an Admin role.

  2. From the Integrations page, select the Add Integration button and select Google Workspace

  3. 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

  4. Under Service Account Keys, upload the JSON key file created for the GCP service account

  5. Choose what Identity Intelligence collects based on what your organization utilizes:

  6. 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.

  7. 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

  1. The GCP service account has been created in a GCP project.

  2. 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

  1. The GCP service account has been given all of the roles listed above at the organization level in IAM in GCP

  2. All of the APIs listed in Set up Google Cloud collection have been enabled in the project that hosts the GCP service account

  3. Data Access audit logs are enabled for the IAM API and the Agent Platform API at the organization level

  4. Billing is enabled for the project that hosts the GCP service account

Google Workspace collection

  1. The Admin SDK API and the Chrome Policy API have been enabled in the project that hosts the GCP service account

  2. The Google Workspace super admin user has been created

  3. The Google Workspace super admin user has the Super Admin role assigned

  4. The GCP service account has been given Domain-Wide-Delegation with the scopes listed above

  5. 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

  6. 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

  1. The My organization does not use Google Cloud and My organization does not use Google Workspace checkboxes match the sections you completed

  2. 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:

  1. 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

  2. In Identity Intelligence, on the Integrations page, select the 3 dot menu for the Google integration and select Edit Settings

  3. Select Reset Credentials, upload the new JSON key file, and select Save

  4. 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:

Data Access log volume in a project, per month
Cost per month

10 GiB

$0

100 GiB

$25

1,024 GiB

$487

Last updated