Skip to main content

Gemini in Google Workspace integration

Connect a Google Workspace admin account so Gemini usage in Gmail, Docs and the Gemini app shows up in AI Usage.

The Gemini integration brings Gemini in Google Workspace usage into Leanmote's AI Usage: who uses Gemini in Gmail, Docs, Sheets, Slides, Meet, Chat and the Gemini app and how often. It reads Google's own activity log for Gemini, so one connection covers the whole Workspace domain and brings up to 180 days of history.


​

What Leanmote reads from Google


​

  • The Gemini activity events from the Workspace Reports API (application gemini_in_workspace_apps), for every user in the domain.

  • For each event: the person's email, the day, the app where it happened (Gmail, Docs, the Gemini app…), the feature and the kind of action.


​

That is all the activity log contains. It carries no prompts, no responses, no document or email content, no token counts and no model names, so Leanmote never sees what anyone asked Gemini or what it answered.


​

Connect Gemini


​

  1. Open Administration → Integrations.

  2. Find Gemini and click Connect.

  3. Pick the Workspace admin account (Leanmote always asks which account to use, so it does not reuse another session in the browser).

  4. Review the three permissions listed in Connection details below, tick the Reports one if it is unticked, and click Allow.


​

If your organization restricts third-party apps


​

If Google shows "Your institution's admin needs to review Leanmote" (Error 400: access_not_configured), your Workspace limits which apps can access Google data. That is your domain's control, not Leanmote's: an admin has to mark the app as Trusted in Admin console → Security → Access and data control → API controls → Manage Third-Party App Access.


​

Search for it by its client ID, not by name:


​

498987618324-ktg6nr6977e75eghu3qns61jb3do4odg.apps.googleusercontent.com


​

Leanmote's Google Calendar integration is a different app with its own client ID, so having trusted Calendar does not cover Gemini.


​

What it powers


​

  • AI Usage: people using Gemini and their interactions per day.

  • Google credits activity from Workspace Studio automations to the flow's owner, so a person with automations can show more interactions than they made by hand.


​

Gemini has no cost or token figures in Leanmote: Workspace bills it per seat in the plan, not per use.


​

Disconnect


​

Disconnect it from Administration → Integrations. To also revoke the access on Google's side, the admin can remove Leanmote from myaccount.google.com/permissions.


​

Connection details


​

Detail

Value

Connection type

OAuth 2.0 with Google, with offline access so Leanmote can read the usage once a day. One connection covers the whole Workspace domain.

Who connects in Google

A Google Workspace admin with the Reports privilege (super admin, or a custom role that includes it).

Who can connect in Leanmote

Owner or Manager.

Write access

None. Every scope is read-only.


​

Scopes requested


​

Leanmote asks for exactly three scopes, all read-only:


​

Scope

Why Leanmote needs it

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

The only scope that gives access to the Gemini activity log in the Admin SDK Reports API. It is read-only: Leanmote cannot change anything in your Workspace, and it only queries the Gemini application's events. Without it there is no data to read, so the connection is rejected if it is not granted.

https://www.googleapis.com/auth/userinfo.email

Identifies which Google account was connected and its domain, so the connection is attached to the right organization and the Integrations card can show who connected it.

https://www.googleapis.com/auth/userinfo.profile

The account's basic profile (name and Google ID), used to show the connected account and keep one credential per person.


​

Leanmote also asks for offline access (access_type=offline). It is not a separate permission: it lets Leanmote refresh the token on its own and read the usage once a day, without asking the admin to sign in again.


​

What Leanmote does not ask for: Gmail, Drive, Docs, Calendar, Chat messages or any write scope. The integration has no way to read your content or modify your Workspace.


​

The app is verified by Google for this scope (an independent review of the request and of how the data is used), so the consent screen shows Leanmote without the "unverified app" warning.


​

Who has to connect it


​

admin.reports.audit.readonly is a scope Google lets anyone consent to, but the Reports API only answers accounts with the Reports admin privilege in Workspace. So:


​

  • Connect it with a Workspace admin (super admin, or a custom role with the Reports privilege).

  • If someone without that privilege connects, Leanmote checks access right away and the card asks them to reconnect with an admin account, instead of showing a connection that reads nothing.

  • On Google's consent screen the Reports permission can show up as a checkbox that is not ticked. Tick it: if it is left unticked, the connection is rejected.


​

Related articles


​

  • Integrations overview

  • Google Calendar integration

Did this answer your question?