Someone always asks, “Who broke main?” Gerrit has the answer, but only if the right people can see it. When your code review system and identity provider live in separate worlds, approvals slow down and audits become blurry. Tying Gerrit and Google Workspace together cleans that up fast.
Gerrit handles code review, patch sets, and all the small rituals before merge. Google Workspace handles identity, groups, and multi-factor sign-ins your security team already trusts. Combine them, and you get a single source of truth for who can approve, push, and manage. It reduces friction across every review cycle.
Connecting Gerrit to Google Workspace usually centers on authentication. Gerrit supports OAuth 2.0 and OpenID Connect, which lets it delegate sign-ins to Workspace. Once connected, access policies flow straight from your organization’s directory. No more local password resets. RBAC mappings sync with your Workspace groups, so “Engineering/Backend” translates directly into Gerrit permissions.
When a user logs in, Gerrit redirects them to Google Workspace for identity verification. After successful login, Workspace returns an identity token confirming who they are and which groups they belong to. Gerrit consumes that token to enforce its own review and submission rules. Functionally, it means you can turn a Workspace suspension into an immediate Gerrit lockout.
Best practices
- Map group-based roles before rollout. Avoid inconsistent reviewer rights by aligning Workspace groups with Gerrit project permissions.
- Keep tokens short-lived and refresh with OIDC standards to limit credential leaks.
- Rotate admin credentials quarterly, and let Workspace control MFA policies.
- Test one-way group syncs in a lower environment before production deployment.
Benefits of Gerrit Google Workspace integration