
Introduction
Google Directory Sync provides automatic user and group provisioning from Google Workspace into Rootly. Unlike SCIM (which relies on push events from an identity provider), Google Directory Sync periodically polls the Google Admin Directory API — approximately every 30 minutes — to keep your Rootly organization in sync with your Google Workspace directory.- Provisions users — New Google Workspace users are added as Rootly members with first name, last name, email, phone numbers, profile photo, and timezone
- Updates users — Name and contact changes in Google Workspace are reflected in Rootly
- Deprovisions users — Users suspended or deleted in Google Workspace are soft-deleted in Rootly
- Syncs groups — Google Groups are mapped to Rootly Groups, with membership kept up to date
- Assigns roles — Rootly roles and on-call roles are assigned based on Google Group membership and Google role (Owner, Manager, Member)
- Protects against mass deletion — A configurable safeguard (default: 20%) prevents accidental bulk deprovisioning if the API returns partial results
Before You Begin
Before setting up Google Directory Sync, make sure you have:- A Google Workspace account with super admin access
- One of the following authentication methods:
- OAuth — Recommended for smaller organizations. Uses a familiar Google sign-in flow.
- Service account with domain-wide delegation — Recommended for enterprises with strict admin policies.
Installation
Navigate to Integrations in your Rootly dashboard, find Google Directory Sync, and click Setup.
Option A: OAuth Authentication
Connect with Google
admin.directory.user.readonlyadmin.directory.group.readonlyadmin.directory.group.member.readonly
Integration connected
Option B: Service Account Authentication
Use this method if your organization requires service accounts or restricts OAuth consent flows.Create a service account
rootly-directory-sync), and click Done. Then open the service account, go to Keys > Add Key > Create new key > JSON, and download the key file.Enable domain-wide delegation
Configure in Rootly
yourcompany.com). Click Save to validate the connection.What Gets Synced
User Field Mappings
When Rootly provisions or updates a user, it maps the following fields from the Google Directory:User Deprovisioning
When a Google Workspace user is suspended, archived, or deleted, their Rootly membership is soft-deleted. If the user has no other Rootly team memberships, the user record itself is also soft-deleted. This is reversible — if the user is reactivated in Google Workspace, they will be re-provisioned on the next sync cycle.Configuring Group Sync
Open the Groups tab
Choose a sync mode
- Sync all groups — All Google Groups in your directory are automatically mapped to Rootly Groups. Mappings are kept up to date as groups are added or removed in Google Workspace.
- Sync selected groups — Only the groups you explicitly select are synced. Use the search box to find groups by name.

Configure per-group role mapping
- Map Owners as admins (default: on) — Google group OWNER role → Rootly group admin
- Map Managers as admins (default: on) — Google group MANAGER role → Rootly group admin
- Google group MEMBER role always maps to a regular group member
Sync Status & Monitoring
The Sync tab shows the current status for both user and group sync, including last sync time, counts of users created/updated/deprovisioned, and any per-user or per-group errors.
- Start and completion timestamps
- Counts: users created, updated, deprovisioned; group members added, updated, removed
- Per-item error details for any failures (individual failures do not abort the overall sync)
Mass Deletion Safeguard
Rootly includes a configurable safeguard to prevent accidental bulk deprovisioning. By default, if a single sync cycle would deprovision more than 20% of your current Rootly members, or remove more than 20% of a group’s members, the deletions are skipped and logged as errors rather than executed. All sync operations are logged and visible under the sync history section. Each log entry includes:- Timestamp
- Operation type (user created, user removed, group updated, etc.)
- Affected user or group
- Success or error status
Troubleshooting
403 Forbidden error during setup or sync
403 Forbidden error during setup or sync
Sync shows 0 users
Sync shows 0 users
domain field in Rootly matches your primary Google Workspace domain exactly.Users from secondary domains are not syncing
Users from secondary domains are not syncing
customer parameter instead of domain.Mass deletion safeguard triggered
Mass deletion safeguard triggered
Phone numbers are not syncing
Phone numbers are not syncing
phones array in the Google Directory response — if this field is empty, no phone number will be synced. Phone numbers are normalized with US as the default country code; numbers in other formats may need to include a country code prefix.Groups are not appearing in the group selector
Groups are not appearing in the group selector
Sync stopped working after an admin account change
Sync stopped working after an admin account change