Skip to main content

Google Workspace integration

Connect Google Workspace to Viio to pull core user data, licence counts, and usage insights—helping you right-size spend and spot inactive accounts quickly.

M
Written by Marta Droneva
Updated over a week ago

Capabilities

Capability

What Viio collects

Users

All active and suspended user accounts with basic profile fields (name, email, status)

Plans & Licences

Edition (Business Standard, Enterprise E1, etc.), total seats, seats used, and per-user licence assignment


Prerequisites

Requirement

Details

Google super-admin role

You must log in with—or delegate access to—a super-administrator account.


Setup

Step 1 – In Viio
Go to Viio → Integrations, search for Google Workspace - Users and Usage, and click Add.

  1. Input your email which is the Google Workspace admin

    • The reason Viio is asking for your email is that sometimes you might be logged in with a different Google account into Viio and Google knows this, for security reasons in the token provided below a check of the emails is performed and it might throw an error.

  2. Authorise the following permissions

    • Authorise the Viio oAuth application. The following permissions will be requested:

      • View and manage the provisioning of users on your domain

      • View audit reports for your Google Workspace domain

      • View usage reports for your Google Workspace domain

      • View and manage Google Workspace licenses for your domain

      • See your primary Google Account email address

      • See your personal info, including any personal info you've made publicly available

  3. Verify first sync

    • Return to Integrations → Google Workspace.

    • Check that Status shows Connected and Last sync appears within a few minutes.


Troubleshooting & FAQ

Symptom

Likely cause / fix

“Insufficient permissions” error in Viio

One of the permissions above wasn’t granted, or domain-wide delegation wasn’t enabled. Double-check step 3.

No licence data, only users

The Google Workspace Licensing API isn’t enabled in Google Cloud, or the licence permission was missed.

Sync never finishes

Large domains can take hours on the first run. Leave Viio open; subsequent syncs will be incremental.

Want to limit data pulled

Create a dedicated super-admin whose visibility is limited by Google’s Custom Admin Roles, then delegate to that account.


Technical Details

  • Primary endpoints

    • GET /admin/directory/v1/users – list users

    • GET /admin/reports/v1/usage/users/{userKey} – usage metrics

    • GET /apps/licensing/v1/product/{sku}/users – licence assignments

  • Data refresh cadence – Viio calls the Reports API every 24 hours

  • Data residency – All fetched data is stored in Viio’s EU data centres (Frankfurt & Dublin).


Additional resources

Did this answer your question?