Skip to content

Google Workspace

Google Workspace does two jobs in Varman: it runs two checks, and it can be your employee sync source.

Check Passes when Evidence task
2-Step Verification Enabled A user is enrolled in 2-Step Verification. Each user without it is a finding, high severity for admins and medium for everyone else 2FA
Employee Access Review Always passes. It records every active user with their admin roles (super admin, delegated admin roles, or user) as access review evidence Employee Access

Both checks skip archived users and suspended users, and follow the same organizational unit and email filters as employee sync (see Settings).

Employee sync. When Google Workspace is your sync provider, Varman imports active users as People, reactivates returning users, and deactivates people who are suspended or removed in Google Workspace. Google Workspace is treated as the authoritative employee directory.

  • A Google Workspace admin account. The person who approves the connection must be a Workspace admin, because the directory APIs only answer for admins.
  • The Admin SDK API enabled in the Google Cloud project that holds the OAuth client (the platform admin does this, see below).

Varman requests these read-only OAuth scopes:

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

Varman asks for offline access, so Google issues a refresh token. Tokens close to expiry are refreshed daily at 05:00 UTC. Varman never writes to your directory.

  1. In Varman, open Integrations, find Google Workspace and click Connect.

  2. Google shows its account chooser. Pick your Workspace admin account. If you are signed in to a non-admin account, switch here.

  3. Approve the consent screen. Google returns you to Varman.

  4. Optional: open Settings on the integration page, set the filters described below, and click Save configuration.

  5. To sync employees, open People, click Sync settings, and choose Google Workspace in the Sync people from list. Varman runs the first sync right away.

Setting What it does
Organizational Units Only users in these OUs, or their child OUs, are synced and checked. Leave empty for all. Choosing / (Root) includes everyone.
User Filter Mode Include all users (default), Exclude matching users, or Include only matching users.
Exclude from Sync & Checks Full emails, domains (@company.com or company.com) or partial text. Press Enter after each value. Matching users are left out of sync and both checks.
Include in Sync & Checks Same format. Only matching users are synced and checked. Empty means everyone.

The OU filter is applied first, then the email filters.

  • Checks run on the daily schedule described in the overview (06:00 UTC, following each task’s frequency), or when you click Run now.

  • Employee sync runs daily at 07:00 UTC while Google Workspace is the selected sync provider. What it does:

    • creates a Varman user and an Employee member for each new active user. Promote admins by hand afterwards,
    • reactivates members who were deactivated but are active in Google Workspace again,
    • deactivates members whose email domain matches your Workspace domain and who are suspended, removed, or filtered out in Google Workspace.

    Members with the Owner, Admin or Auditor role are never deactivated by sync. People with emails on other domains are left alone.

To stop employee sync without disconnecting, choose Don’t auto-sync in People > Sync settings. People already imported stay as they are.

Open Integrations > Google Workspace, click Settings, then Disconnect. Varman deletes the stored tokens. It does not revoke them with Google, so also remove Varman’s access in the Google Admin console or in the admin’s Google account third-party connections. See Disconnecting for what Varman keeps.

  • Google Workspace credentials expired. Please reconnect. Google rejected the token. Disconnect and connect again with an admin account.
  • No valid credentials found. Please reconnect the integration. The stored token is missing or could not be refreshed. Reconnect.
  • Failed to fetch users from Google Workspace. The directory call failed. Check that the connected account is still a Workspace admin, then sync again.
  • An Employee Access List row that says No active users matched the configured filters. Your OU or email filters exclude everyone. Widen them under Settings.
  • A user shows 2FA Not Enabled even though 2SV is enforced. Enforcement is on but the user has not enrolled yet. Ask them to finish setup. To turn on enforcement, see Google’s guide: Deploy 2-Step Verification.
  • Someone was not deactivated. Sync never deactivates Owners, Admins or Auditors, or members whose email domain is not a Workspace domain.