How Zitadel signs Google Workspace users in with SAML SSO
The supported method for this integration is SAML single sign-on, with Zitadel acting as the identity provider and Google Workspace as the service provider. Zitadel's Google Workspace guide is the basis for the steps in this section and for the configuration checks in the rest of this page. An IT or identity lead should read it alongside their own Google Workspace admin settings before planning changes, because the guide assumes both systems are already administered by the same team.
The integration covers three things: the sign-in flow itself, domain-based routing so that users on the verified domain are sent to Zitadel, and the SAML trust between the two systems, which consists of the metadata exchange, the signing certificate that Google checks, and the assertion attributes that identify each user. Before any of that works, the same domain must be verified in Google Workspace and set as the Zitadel organization domain, and usernames must match in both systems. A mismatch here is the most common reason a sign-in fails after the configuration looks correct, so the reader should confirm the username format in each system before starting.
The integration does not cover user provisioning, meaning creating, updating and removing Google Workspace accounts from Zitadel. Sign-in alone does not deprovision a departed user, so the reader should decide how account lifecycle will be handled and scope it separately if it is needed. Confirm with Zitadel's current documentation which provisioning options apply to your Google Workspace edition and Zitadel version before assuming any of them.
What must be in place before the Google Workspace setup starts
Google Workspace and Zitadel must agree on the same domain and the same usernames before any SAML profile is created. The cards below cover what to have ready on both sides and on the network path, so the setup does not stall halfway through.
A running Zitadel instance
Confirm you have a working Zitadel instance that you can reach from a browser, with an administrator who can open the Console. Confirm the exact Zitadel release you run against the Google Workspace guide, since steps and screens can differ between releases. If you self-host, confirm the release notes for that version before you start.
Google Workspace guideA PostgreSQL database for self-hosting
A self-hosted Zitadel stores its data in PostgreSQL, and PostgreSQL versions 14 through 18 are supported. Confirm your database version falls in that range and that backups run before you change any identity configuration. Check the Zitadel release you run against the guide, since supported versions are tied to the release.
- Supported PostgreSQL versions
- 14 to 18
A workforce organization in Zitadel
Create or choose the Zitadel organization that will hold the Google Workspace users, since organizations are where projects and users live. Keep the workforce users separate from customer users so later access rules stay clear. Note the organization name and ID, because you will attach the verified domain to this organization.
Google Workspace super administrator access
You need an account with super administrator rights in Google Workspace to verify the domain and configure SAML SSO. Do not assume a lower role is enough. Confirm the exact admin roles and steps in the guide before you request access, and record who approves changes in the Google Admin console.
A verified domain in both systems
The same domain must be verified in Google Workspace and set as the Zitadel organization domain. A mismatch causes Google to route sign-ins incorrectly or reject them. Check ownership of the domain DNS records and confirm that no other organization in Zitadel already claims it.
Matching usernames and network reach
Each user's username must match exactly across Google Workspace and Zitadel, so the SAML assertion identifies the same account on both sides. Also confirm Google can reach the Zitadel SAML certificate endpoint at /saml/v2/certificate over the network, because the certificate must be downloaded during setup. Test that path from outside your private network before the change window.
How a Google Workspace sign-in travels through Zitadel
The diagram starts with the certificate exchange, a one-time step done before the first sign-in, in which the administrator downloads the Zitadel SAML certificate from /saml/v2/certificate and configures Google Workspace to trust it. For each sign-in, the user begins at Google Workspace, which sends a SAML request redirecting the browser to Zitadel. The user authenticates in Zitadel, and Zitadel returns a signed SAML response through the browser to Google. Check that the domain, usernames and certificate match on both sides before testing.
Illustration of the SAML flow, not a configuration screen.
Configure the integration in the order Google and Zitadel check it
This sequence aligns the domain, the usernames and the SAML certificate across both systems before any user is asked to sign in through Zitadel. Each step ends with a check, so a failure is caught at the point where it is cheapest to fix.
Verify the domain in Google Workspace
The Google Workspace administrator proves ownership of the domain that users will sign in with, using the domain verification method Google provides for the tenant. Google treats the domain as the anchor for every user who signs in through SSO, so nothing downstream works until this is complete. Confirm in the Google admin console that the domain shows as verified and that it is the primary domain your users actually hold addresses on. Do not proceed if the domain is still pending, because the Zitadel side depends on the same name.
Create or select the Zitadel organization and set its domain
Create a new organization in Zitadel for the Google Workspace tenant, or choose an existing one that will hold these users. Set the organization domain to exactly the same domain verified in Google Workspace, spelled and cased the same way. The Zitadel guide treats this match as a prerequisite, so the check is simple: the organization's domain field and the verified Google domain are identical, and no other organization claims that domain in your instance. Record the organization name, because later steps reference it.
Align usernames in both systems
Decide which identifier each person uses to sign in and make sure the username in Zitadel matches the primary address the same person has in Google Workspace. Mismatched usernames are the most common reason a valid user fails to resolve during SSO, so review the export from both directories side by side before creating accounts or importing them. Pick a test user and confirm that the username in Zitadel resolves to the same email address shown for that user in Google Workspace. Do not continue until the test user matches in both systems.
Create the Google SAML setup in Zitadel
In the Zitadel organization, create the SAML configuration for Google Workspace by following the Zitadel Google Workspace guide step by step. The guide specifies the application type and the fields Zitadel needs to present to Google, and it is the source for the exact labels in the Zitadel console. Save the configuration and keep the endpoints it generates, since Google needs them in the next steps. The check at this point is that the application exists in the correct organization and shows the expected entity and endpoint values.
Download the Zitadel SAML certificate
Retrieve the Zitadel SAML signing certificate from the certificate endpoint on your Zitadel instance, at the path /saml/v2/certificate under your Zitadel domain. Save the file exactly as served, without re-encoding it, and store it where the Google administrator can upload it. Compute the certificate fingerprint on the saved file and compare it with the fingerprint obtained by fetching the endpoint again from a separate machine. A match confirms that you have the certificate Zitadel is actually serving, and that it has not been altered in transit.
Configure the SSO profile in Google Workspace
In the Google Workspace admin console, create or edit the SSO profile for third-party SAML and enter the Zitadel values from the previous steps: the sign-in and sign-out endpoints, the entity ID, and the certificate you verified. The guide gives the exact menu paths and field names, so follow it rather than working from memory. Choose the SSO profile type deliberately, because a profile can apply to the whole organization or to selected organizational units, and the choice changes which users are redirected. Save the profile, then assign it to the test organizational unit or user group.
Test sign-in with a test user before rollout
Sign in to Google Workspace with the test user from step three and confirm that the browser is redirected to Zitadel, that the login succeeds, and that the user lands in the correct Google account. Repeat with one user who is excluded from the SSO profile to confirm that they still sign in as before. Only widen the assignment once both checks pass. Keep a record of the test results, the certificate fingerprint, and the profile settings so that a later change can be compared against a known-good state.
Which identity fields must match between Google Workspace and Zitadel
This table compares the identity settings in Google Workspace and Zitadel that have to line up for SAML single sign-on to work. Read each row as a pair: the value on the Google side must correspond to the value on the Zitadel side, and the last column shows what usually breaks when they diverge. Confirm the exact attribute names and screen labels against the Zitadel Google Workspace guide before you configure either system.
| Item | Google Workspace side | Zitadel side | Failure if it is wrong |
|---|---|---|---|
| Verified domain | The primary domain is verified in the Google Workspace admin console | The same domain is set as the organization domain in Zitadel | Users with that domain are not routed to the SAML profile and sign-in falls back to other methods or fails |
| Primary username or email | User primary email addresses in Google Workspace | Matching usernames for the same people in Zitadel, per the guide | Assertions carry an identity Zitadel does not recognize, so login is rejected or creates a duplicate account |
| Organization domain | The domain Google Workspace trusts for SSO assignments | The Zitadel organization domain that the SSO profile is bound to | Logins from the domain are sent to the wrong organization or not sent to any SSO profile |
| SAML certificate | The Zitadel signing certificate is entered as the verification certificate on the Google side | Certificate served from the SAML certificate endpoint under /saml/v2/certificate | Google rejects signed responses after a certificate is rotated or copied from the wrong instance |
| SSO profile assignment | The SSO profile is assigned to the organizational units or groups that should use Zitadel | The SAML SSO profile type chosen for the Google Workspace application | Some users sign in through Google accounts while others are forced through Zitadel, which is hard to audit |
| User account state | Accounts are active and not suspended in Google Workspace | Matching user exists and is active in the Zitadel organization | Suspended or missing accounts pass the identity provider step but fail at the application or get stuck in a loop |
Which SSO profile type fits each rollout situation
A pilot puts a small set of users through Zitadel while everyone else keeps their current sign-in path. The practical question is which SSO profile type applies to the pilot users and whether they can still reach Google with a Google password during the test. Those answers decide whether the pilot runs alongside normal access or changes sign-in for the people you included. Keep pilot users in a dedicated group or organizational unit so you can change their scope without touching the wider workforce.
- Fallback access: Confirm whether pilot users keep a Google password path. If they do, a failed Zitadel login does not lock them out of Google.
- Scope control: Check whether the Google admin console lets you assign a profile to specific organizational units or groups.
- Test accounts: Use a named set of accounts whose usernames match Zitadel exactly, and include one administrator account that can revert the change.
- Rollback path: Write down the steps to remove the profile assignment and test them before the pilot starts.
Before choosing, confirm the exact profile names, assignment options and password behavior in Google's admin documentation, then check the Zitadel guide for the username and certificate steps.
When one verified domain covers the whole workforce, moving everyone at once is simpler to explain but leaves less room for error. Once the profile applies, every user on that domain is routed through Zitadel, so the verified domain and matching usernames in both systems must be correct before the switch. The Zitadel Google Workspace guide sets out these prerequisites, and the cutover plan should include the support path for users who cannot sign in on day one.
- Domain readiness: Confirm the same domain is verified in Google Workspace and set as the Zitadel organization domain before any user is switched.
- Username audit: Compare every Google Workspace username with its Zitadel counterpart. A mismatch is a likely cause of a failed login for an individual user.
- Certificate handling: Download the Zitadel SAML certificate from the certificate endpoint and confirm that the copy configured in Google is current before cutover.
- Password fallback: Confirm which users, including administrators, keep a Google password path if Zitadel is unavailable.
- Support load: Assign owners for sign-in tickets during the first hours after the change.
Check the exact profile type and its password behavior in Google's admin documentation, and confirm the username and certificate steps in the Zitadel guide before scheduling the change window.
A mixed estate has some users or organizational units still signing in through another identity provider while others move to Zitadel. Here the SSO profile choice determines which population is redirected and which keeps its current path, so the boundaries should follow your organizational structure and be documented before any profile is assigned. Map each group to its identity provider and target date first, then assign profiles one population at a time.
- Population map: List every organizational unit and group, its current identity provider and the stage at which it moves.
- Overlap check: Confirm that a user cannot receive conflicting profile assignments through both an organizational unit and a group.
- Account separation: Keep usernames and domains for the other identity provider distinct from those used with Zitadel, so users are not matched to the wrong account.
- Exit criteria: Define when each group moves and which profile applies at each stage.
- Access records: Keep a current list of which sign-in path each user uses, for support and audit.
Confirm the assignment rules and precedence between overlapping profiles in Google's admin documentation, and check the Zitadel guide for the domain and username requirements that apply to each migrated group.
Security controls for the Google Workspace SSO path
Signing Google Workspace users in through Zitadel moves trust into two systems, and a weakness in either one can let the wrong person into your applications. The cards below cover the controls that connect them: who can claim the domain, who can administer Zitadel, how users authenticate, how the SAML certificate is handled, which users receive the SSO profile, and how changes are logged on both sides.
Protect the organization domain claim
The verified domain set as the Zitadel organization domain is the link between a user's email address and the organization that signs them in. Confirm that only your verified owner can add or change that domain in Zitadel, and that the same domain is verified in Google Workspace by an account you control. Record who holds the domain registrar and DNS access, because control of DNS is what proves ownership to both systems. Review the domain claim after any change to DNS hosting or registrar accounts.
Limit Zitadel administrator access
Administrators who can change the organization, its identity providers or SAML settings can redirect sign-in for your whole domain. Keep the set of administrator accounts short, assign roles per organization rather than at instance level where the model allows it, and require a named owner for each administrator. Confirm the exact role names and their scope in the Zitadel hardening documentation before you assign them.
Enforce passkeys with password fallback
Zitadel supports passwordless login with passkeys based on FIDO2 and WebAuthn, with fallback to password login. Decide whether Google Workspace users must register a passkey before they can use SSO, and whether password fallback stays enabled for them. Test the fallback path, because it is the weakest sign-in method available to a user who signs in through this flow. Confirm the enforcement options for your Zitadel version in the passkey documentation.
Passkey docsPlan the SAML certificate lifecycle
Google Workspace trusts the Zitadel SAML certificate downloaded from the certificate endpoint, so a certificate change that is not reflected in Google breaks sign-in for every user at once. Record the certificate's expiry date, schedule its renewal, and set a step that downloads the new certificate and updates the Google SSO profile before the old one expires. Keep the old certificate available during the overlap window. Confirm the rotation procedure and any overlap support in the Zitadel guide.
Restrict the SSO profile to intended org units
A Google Workspace SSO profile can be assigned to specific organizational units rather than the whole domain. Assign the profile only to the units that should sign in through Zitadel, and keep the rest on their existing sign-in path until the rollout is complete. Check the profile type and its assignment behavior in Google's documentation, and confirm with a test user in each unit that the expected users are covered and others are not.
Keep audit logs on both sides
Changes to the Zitadel organization, identity provider, SAML application or administrator roles should be traceable, and so should changes to the Google Workspace SSO profile and domain settings. Decide where each log lives, how long it is retained, and who reviews it. Confirm which Zitadel events are exported and how they are stored in your logging setup, and align the review cadence with your change management process.
Why Google Workspace sign-in fails after setup
This table pairs common post-setup symptoms with their likely causes and the first fix to check against the Zitadel Google Workspace guide. Read it top to bottom when a login fails, since the first rows are the configuration checks most often missed. Each cause is a likely explanation, so confirm the fix in your own environment before changing production settings.
| Symptom | Likely cause | Fix to confirm |
|---|---|---|
| Google redirects users but the Zitadel sign-in is rejected for the domain | The domain verified in Google Workspace does not match the domain set as the Zitadel organization domain | Confirm the same domain is verified in Google Workspace and set as the Zitadel organization domain, then retest with one account |
| User signs in to Google but lands on an error about an unknown account | The username in Zitadel differs from the username in Google Workspace | Align usernames in both systems so each user's identifier matches exactly, then retry the sign-in |
| SAML response fails signature validation after a working setup | The certificate uploaded to Google is wrong or outdated | Download the Zitadel SAML certificate again from the certificate endpoint in the guide and upload it to the Google SSO profile |
| Only some users, or users in one department, are sent to Google sign-in without SSO | The SSO profile was applied to the wrong organizational unit, or a child unit overrides the parent | Check which organizational unit the SSO profile is assigned to and confirm the affected users sit under it |
| Users are blocked after entering valid credentials | A password or account state in Zitadel or Google, such as a locked, suspended or password-reset account, blocks sign-in | Check the account status and password state in both systems, clear the lock or reset the password, then test again |
| Sign-in works for some time, then the Zitadel login fails or behaves inconsistently after an upgrade or restart | The self-hosted Zitadel database runs a PostgreSQL version outside the supported range of 14 through 18 | Confirm the PostgreSQL version against the Zitadel database documentation and upgrade to a supported version before retesting |
How to test the setup before enforcing SSO for every user
Test the Zitadel SAML setup with a small pilot group before any SSO enforcement reaches the whole Google Workspace domain. Choose a few accounts from different organizational units so the test covers more than one set of group policies, admin roles and login habits. Each pilot account should have the same username in Google Workspace and Zitadel, because a mismatch is the most common reason a sign-in fails for reasons unrelated to the certificate or the SAML profile. Before starting, confirm that the domain is verified in both systems and that the Zitadel organization domain matches it exactly.
Run the sign-in test from a clean browser session, with no existing Google or Zitadel cookies, so you see the path a new user takes rather than a session that is already authenticated. Start the sign-in from the Google Workspace side, then repeat it for each pilot account. Add a negative check as well: sign in with an account on a domain that is not part of the organization and confirm that Google does not route it to Zitadel. Verify that the SAML certificate in use matches the one you downloaded from the Zitadel /saml/v2/certificate endpoint, and record which certificate and which SSO profile type each test used.
Plan the rollback before you enforce anything. Keep at least one Google super administrator who can still sign in with a password and is excluded from the SSO profile, so a broken certificate or misconfigured profile does not lock the tenant out of its own admin console. Record the result of every test, the certificate fingerprint in use and the profile settings, and widen the rollout only after those records show the pilot passed. If a test fails, revert the profile for the affected group, correct the cause and rerun the full pilot. Confirm the exact admin recovery steps for your Google tenant with your Google administrator before enforcement.
Questions buyers ask before connecting Google Workspace to Zitadel
What drives the cost and effort of connecting Google Workspace to Zitadel?
The main drivers are how many domains and organizational units you need to federate, how many users sign in through the connection, and whether a self-hosted Zitadel is already running and reachable. A single verified domain with one organization is a small, bounded task. Multiple domains, several Zitadel organizations, and a production cutover for thousands of users add verification work, testing and change control. Ask for a quote that lists each domain, organization, environment (test and production) and the user population, since those items set the effort. Any figure should come from a written scope, not a generic estimate.
Can our own team connect Google Workspace to Zitadel without a partner?
Yes, a team with administrator access to both systems can follow Zitadel's Google Workspace guide. The steps themselves are not the hard part. The effort usually goes into domain verification, deciding how usernames will match between the two systems, and running a pilot with a small group before everyone is switched over. If your team has no spare capacity for that testing, or no one has run a SAML integration before, a partner can take the pilot and cutover work. Either way, plan for the pilot to take real attention from the people who own identity and email.
What do we need to provide for the Google Workspace connection?
You need super administrator access in Google Workspace and administrator access to the Zitadel organization, so the SAML application and domain settings can be made on both sides. Someone must control the DNS for your domain, because the domain has to be verified in both Google Workspace and Zitadel. You also need an accountable owner for username data, since the usernames in Google Workspace and Zitadel must match exactly. Name these owners before work starts, and confirm who approves changes to production sign-in.
How long does a Google Workspace SSO connection take to set up?
The duration depends on the scope and on how the rollout is staged. A single domain tested with a small pilot group takes far less time than several domains moved in phases with user communication and fallback planning. Domain verification timing also depends on your DNS change process and on how quickly your administrators can act. Do not rely on a fixed duration. Ask for a written plan that lists the phases, the pilot group, the cutover window and the rollback steps, and check it against your change calendar.
Does the Google Workspace connection include user provisioning?
No, the SSO connection covers sign-in, not account lifecycle. Creating, changing and removing users in Zitadel is a separate design decision. Zitadel provides a SCIM v2 service provider interface for standardized user provisioning and lifecycle management, but whether you use it, and how it fits with SAML sign-in, should be scoped on its own. Ask your provider to state explicitly whether provisioning is included, and what happens to access when someone leaves the organization in Google Workspace.
Does the Zitadel license change affect this Google Workspace work?
It can matter for your licensing review, but it does not change how the SAML connection is configured. Zitadel moved its core, Console and hosted login from Apache 2.0 to the GNU Affero General Public License 3.0 with v3.0 on 31 March 2025. Zitadel states that APIs, SDKs, proto definitions, examples, documentation, Helm charts and Terraform configurations remain Apache 2.0. Have your legal or compliance team review the AGPL 3.0 terms against how you run and modify the software before committing to the deployment, and confirm the current position with Zitadel's own license materials.
What should we check on the Zitadel SAML certificate before going live?
Download the Zitadel SAML certificate from the /saml/v2/certificate endpoint on your Zitadel domain and confirm it is the one the Google Workspace SAML configuration expects. Check that the domain in the URL matches your production instance, not a test instance. Record who downloaded the certificate and when, and add a calendar reminder for renewal planning, since a mismatched or expired certificate will block sign-in. Confirm the expiry and rotation process with your Zitadel operator before cutover.
How DeployOpen scopes and delivers the Zitadel Google Workspace integration
DeployOpen plans, implements and documents Zitadel single sign-on for Google Workspace inside your own infrastructure, so the identity configuration, domain verification and user matching are reviewed before any user is switched over. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How we scope
- Confirm the Google Workspace primary domain and the matching Zitadel organization domain before any configuration starts.
- Document how usernames in Google Workspace and Zitadel will match, and who owns the mapping rules.
- Agree in writing which SAML SSO profile types are in scope and which users will sign in through Zitadel first.
How we build
- Configure the SAML SSO profile in Zitadel and the matching SSO settings in Google Workspace, then record every value used.
- Retrieve the Zitadel SAML certificate from the certificate endpoint and confirm it is installed correctly on the Google side.
- Test sign-in with pilot accounts, including failure cases such as mismatched usernames and users outside the verified domain.
How we hand over
- Deliver a written configuration record covering domains, usernames, certificate location and SSO profile choices.
- Provide a runbook for certificate renewal, user onboarding and a rollback path to Google sign-in.
- Walk your administrators through the configuration and the test results before the scope is closed.
How we support
- Offer ongoing support, upgrades and continuous testing for the integration as a retainer.
- Retest the sign-in flow after Zitadel or Google Workspace changes that affect SSO settings.
- Keep the documentation current so your own team can operate the integration after handover.

