✨ Software.com is now Antenna. Read more →
Skip to Content
IntegrationsAIGemini for Workspace

Gemini for Workspace

Connect your Google Workspace account to Antenna to analyze Gemini for Workspace adoption and usage across your organization, alongside your other AI tools.

This integration reads per-user Gemini usage from Google’s Admin SDK Reports API . Antenna authenticates with a Google Cloud service account that has domain-wide delegation for three read-only Admin SDK scopes, and impersonates a Workspace admin to fetch the data. The setup involves four steps:

  1. Enable the Admin SDK API and create a service account with a JSON key
  2. Authorize the service account for the three read-only scopes (domain-wide delegation)
  3. Ensure the admin account it impersonates has the Reports privilege
  4. Connect in Antenna

Prerequisites

Before you begin, ensure you have the following:

  • A Google Workspace super admin account (needed to configure domain-wide delegation and admin roles).
  • A Google Cloud project where you can enable APIs and create a service account.
  • Gemini for Workspace licensed in your organization (which Gemini metrics are returned depends on your license tier).

This is a separate integration from Gemini Code Assist. Gemini for Workspace covers Gemini usage across Google Workspace apps; Gemini Code Assist covers in-IDE coding assistance.

Setup

Create a service account and JSON key

  1. In the Google Cloud Console , select (or create) the project you’ll use.
  2. Go to APIs & Services > Library, search for Admin SDK API, and click Enable.
  3. Go to IAM & Admin > Service Accounts and create a service account (e.g., antenna-reports). No project IAM roles are required for this integration.
  4. Open the service account, go to the Keys tab, and select Add key > Create new key > JSON. A .json key file downloads to your computer — keep it secret. You’ll paste its contents into Antenna later.
  5. On the service account’s Details tab, note its Unique ID (a ~21-digit Client ID). You’ll need it in the next step.

The JSON key can only be downloaded when it’s created. If you lose it, create a new key.

Authorize the Admin SDK scopes

Grant the service account domain-wide delegation for the three read-only scopes.

  1. In the Google Admin console , go to Security > Access and data control > API controls > Domain-wide delegation.
  2. Click Add new.
  3. Enter the service account’s Client ID from the previous step.
  4. In OAuth scopes, enter all three scopes as a comma-separated list:
https://www.googleapis.com/auth/admin.reports.usage.readonly, https://www.googleapis.com/auth/admin.reports.audit.readonly, https://www.googleapis.com/auth/admin.directory.user.readonly
  1. Click Authorize.
ScopeWhy it’s needed
admin.reports.usage.readonlyReads the Workspace usage reports.
admin.reports.audit.readonlyReads Gemini activity events, which are only exposed through the audit endpoint.
admin.directory.user.readonlyResolves the users behind the activity so usage can be attributed to contributors.

Grant the impersonated admin the Reports privilege

The Admin SDK only returns data when acting as a Workspace admin. Choose the account the service account will impersonate and confirm it has the Reports and Users > Read privileges.

  • The simplest option is to use an existing Super Admin account, which already includes these privileges.
  • For least privilege, create a custom admin role in Account > Admin roles with the Reports privilege (under Admin console privileges) and the Users > Read privilege (under Admin API privileges), then assign it to the account under Directory > Users > (user) > Admin roles and privileges.

Admin role changes can take a few minutes to propagate before the API returns data.

Connect in Antenna

  1. Navigate to Settings > Sources > Add source in your app.antenna.dev  account.
  2. Click Connect next to Gemini for Workspace.
  3. Enter the Workspace Admin Email — the admin account the service account impersonates (from the previous step).
  4. Paste the full Service Account JSON Key you downloaded.
  5. (Optional) Enter your Customer ID (found in the Admin console under Account > Account settings). Leave blank to default to the impersonated admin’s own account.
  6. (Optional) Enter an Average Cost Per Seat to estimate spend (see below).
  7. Click Connect to complete the setup.

Cost

Google does not expose Gemini seat pricing through any API, so cost cannot be fetched automatically. If you enter an Average Cost Per Seat when connecting, Antenna estimates spend as active seats × that monthly rate. Leave it blank to skip cost estimation.

Data Collected

Antenna collects per-user, per-day Gemini for Workspace usage and adoption metrics from the Admin SDK Reports API — for example active-user and feature-usage counts. It does not collect prompts, responses, or any content of user interactions.

Usage for a given day is available after a short delay (typically 1–3 days), per Google’s reporting data lag.

Resources

Last updated on