How Zitadel domain discovery routes alice and bob to different logins
Domain discovery sends each user to the login of the organization that owns the email domain they type. When alice@customer-a.com enters her address on a shared login page, Zitadel matches the domain to the organization that has claimed it, then applies that organization's identity provider or password and MFA rule. Bob@customer-b.com lands on a different path on the same page, with no separate login URL to publish. Teams need this when one application serves several customer organizations, when partners sign in against their own employer's directory, or when workforce users and external customers share a front door but must follow different rules. It does not replace the controls inside each identity provider, such as Entra ID conditional access or the MFA policy a customer already enforces. Domain discovery only decides where the login goes.
Before relying on it, confirm how Zitadel models the pieces involved. Domains belong to organizations inside an instance, and the verification step matters because an unverified claim on a domain is a takeover risk: a customer's domain should be proven under your control before any routing depends on it. Check the current verified-domain and organization-domain behavior in the Zitadel documentation for your release, since the exact flow depends on the version you run. The Zitadel organizations documentation is the starting point for how organizations and their scope relate to instance-level settings.
The design decision is where each login policy lives. Instance-level login settings apply to every organization unless overridden, so a password-only rule set at the instance level can silently govern customer-b while customer-a expects its Entra ID redirect. Decide which policies are instance defaults, which belong to a specific organization, and which requests must carry the organization scope so the right policy is evaluated. Test with one account per domain, including a user whose domain is unclaimed, and record which login path each one reaches before you onboard a customer.
Instance versus organization login policy: which scope fits your tenants
Instance-wide login policy and identity providers are configured once for the whole Zitadel instance. Platform operators own this scope, and it suits cases where every user, whether staff or a customer, should meet the same sign-in rules and reach the same upstream provider. Because the instance is the top-level tenant boundary, a single setting here applies to every organization that depends on it, so the change path should look like an infrastructure change with review and records.
- Who manages it: Instance administrators, normally the platform team, who approve changes through the same process used for other production configuration.
- What a customer admin can change: Confirm in the documentation and your own tests whether organization administrators can see or edit instance-level settings at all. In most multi-tenant designs they should not.
- Blast radius: A weak default, such as password-only sign-in where MFA was intended, reaches every tenant at once and may not be noticed until a customer reports it.
- Good fit: Workforce identity for your own staff, or one shared provider that all tenants are meant to use.
- Review cadence: Keep an exported record of instance settings so that a change can be compared with the last approved state.
Before you rely on this scope, check which accounts hold instance administrator rights and whether any tenant-facing console can reach these settings.
Organization-level policy and identity providers belong to one organization inside the instance. Zitadel's documentation describes organizations as the place where projects and users live, and each customer organization can use a different identity provider. This scope fits customers whose sign-in rules, directory or MFA requirements differ from those of other tenants. The cost is that each organization becomes its own configuration to keep correct, and the number of configurations grows with the number of tenants.
- Who manages it: The platform team at onboarding, and sometimes the customer's own administrators if you delegate that work. Confirm how delegation is granted and audited in your version.
- What a customer admin can change: Typically the identity provider connection, domain mapping and certain login options for their organization. Limit this to what the contract and your security review allow.
- Blast radius: A mistake affects one tenant. This is the main reason many teams prefer this scope for customer-specific sign-in.
- Drift risk: Across dozens of organizations, settings can diverge without anyone intending it. Use a written template for each new organization and check settings in a scheduled report.
- Automation: Create organizations and their provider settings through infrastructure code where the Zitadel tooling supports it, so each new tenant starts from the same baseline.
Before you commit to this scope, ask the vendor or your own test environment which organization settings a delegated administrator can change and how those changes appear in the audit log.
In the mixed model, the instance holds a baseline of defaults and each organization overrides only the settings it needs. For example, the instance might require a strong password and MFA for every user, while one customer organization sends its users to its own identity provider and another keeps a stricter second factor. This model keeps the common rules in one place and limits per-tenant work to real differences. It also adds a rule-precedence question that must be answered in testing before go-live.
- Who manages it: The platform team owns the baseline. Organization owners or delegated administrators own only the overrides that the contract allows.
- Precedence: Confirm, with a test in your own environment, how an organization setting interacts with an instance default for each option you use.
- Blast radius: A bad baseline still reaches every tenant that inherits it, so the baseline needs the same review as an instance-wide change.
- Policy direction: Decide in writing whether organizations may only tighten the baseline, for example by adding MFA, or may also loosen it. Most regulated designs allow tightening only.
- Documentation: Record each override with its reason, so auditors and future administrators can see why a tenant differs from the baseline.
Before you go live, run a sign-in test for each tenant type and confirm that the effective policy matches the written decision.
Configuration options and when each fits
This table compares the six settings a team must decide when routing users by email domain: organization domains, verified domains, instance and organization login policies, identity provider scope, and the org scope on the login request. Read each row for the fit with multi-tenant SaaS, partner access or workforce use, and for what the choice hands to delegated administrators. The main takeaway is that routing depends on a verified domain claim, and the scope you choose determines who can change it.
| Option | What it controls | Best fit | Delegated administration effect |
|---|---|---|---|
| Organization domains | Domains an organization claims so a login email can be matched to that organization | Multi-tenant SaaS where each customer brings its own email domain | Org admins can add domains, so confirm who may claim a domain before onboarding |
| Verified domains | Proof that the organization controls a claimed domain before routing relies on it | Any setup where a customer could claim a domain it does not own | Verification should stay with the platform team, not the tenant admin |
| Instance login policy | Default login behavior, such as allowed methods and MFA, for the whole instance | Workforce use with one set of rules and a shared login page | Applies to everyone unless an organization overrides it, so review changes carefully |
| Organization login policy | Login methods and MFA rules for users of one organization | Partner access or customers with different password and MFA requirements | Org admins may be able to change these, so confirm which settings they control |
| Identity provider scope (instance or org) | Whether an upstream provider such as Entra ID or Okta is available to all organizations or only one | Instance scope for shared providers, organization scope for a single customer's directory | Org-scoped providers keep configuration and secrets within one tenant's administration |
| Org scope on the login request | Which organization the login page resolves to, so routing uses that organization's settings | Dedicated login URLs or branded pages per customer | Confirm how the org context is set when a user arrives from an application |
Setting up domain discovery across two customer organizations
This sequence builds one Zitadel instance with an organization per customer, so a single login page sends each user to the identity provider or login method that belongs to their email domain. Each step ends with a check that confirms routing before the next step begins.
Create the instance and customer organizations
Create one Zitadel instance for the environment, then create one organization for each customer, for example one for customer A and one for customer B. Users, projects and provider settings for each customer live inside that customer's organization, which keeps their configuration separate. Confirm that both organizations appear in the Console and that each one has its own name and admin user. Only proceed once both organizations exist, because later steps attach settings to them.
Add and verify each customer domain
In each organization, add the email domain the customer uses, such as customer-a.com, and complete the verification that Zitadel requires before the domain counts as proven. Until verification succeeds, the domain is not trusted for routing, so a user with that domain can still reach the login page but will not be sent to the customer's provider. Check the domain status for each organization and confirm that the unverified state appears before verification and the verified state appears after. Record which domains belong to which organization so the mapping is easy to audit.
Attach each organization's identity provider or login policy
For customer A, attach the Entra ID provider at the organization level. For customer B, keep password login with multi-factor authentication as the local login method for that organization. Confirm the provider settings, including the client ID, redirect URI and any attribute mapping, against the customer's own tenant before you test. Ask the customer's identity team to confirm the expected tenant and application registration. The check here is that each organization shows exactly one intended login path.
Set the organization scope on the login request
Configure the application or login URL so that requests carry the organization scope for the target customer, using the scope mechanism documented for Zitadel's organizations. Without that scope, the login page falls back to instance-level policy, which may not match the customer's provider. Test one URL for each organization and confirm in the response or browser flow which organization the request resolved to. Record the exact scope format so application teams reuse it without guessing.
Test routing with one user per domain
Create or invite one test user in each customer organization, then sign in from the shared login page using the matching email address. User A should be redirected to Entra ID and user B should see the password and multi-factor prompts. Confirm that each user lands in the correct organization after authentication. Keep the results with the change record, since they are the baseline for later regression tests.
Confirm routing for unverified and unmapped domains
Enter an address with an unverified domain and confirm that Zitadel does not route it to a customer provider, which protects against a customer claiming a domain they do not control. Then enter an address with a domain that is not mapped to any organization and confirm that it falls back to the instance login policy or is rejected, according to your configuration. Both checks should produce a predictable result that matches your written policy. If either check routes the user to a customer provider, stop and review the domain verification and policy settings before going live.
How a login request reaches the right identity provider
The flow starts when a user types an email address on the shared Zitadel login page. Zitadel uses the domain part of that address to find the organization that owns it, then applies that organization's login policy and identity provider settings. Users whose domain maps to Entra ID are redirected upstream, while others stay on local password and MFA. Check that each domain is verified before you rely on it for routing, and that the trust boundary between Zitadel and each upstream provider is documented.
Domain lookup selects an organization, then the matching identity provider or local login.
Security risks in domain routing and how to control them
Domain discovery decides which identity provider and login policy a user meets before they authenticate, so a mistake here can send a user to the wrong tenant or weaken their sign-in. The cards below pair each risk with a control and the check that proves the control works in your own instance.
Unverified domains routing users wrongly
If a domain is attached to an organization without proof of ownership, a user with that address may be sent to a tenant that has no claim to their identity. Only verified domains should drive routing, and the verification step should be run by someone who controls the DNS or mailbox for that domain. Check that every routed domain shows as verified in the organization settings before the identity provider is linked, and that unverified domains do not appear in discovery results.
Zitadel organizationsDomain overlap between customers
Two organizations claiming the same domain, or a subdomain that a customer does not own, creates an ambiguous route. Illustrative case: a shared mail domain used by a reseller could send staff from several customers to one customer's Entra ID tenant. Decide in advance which domains are exclusive, and reject a second claim until the first is released. Check that each domain maps to one organization and that your onboarding runbook records who approved each claim.
Customer admins changing login methods beyond scope
An organization administrator who can edit login policy may turn on a weaker method, such as password only, for users who should need MFA or a federated provider. Limit that permission to the settings the customer has agreed to own, and keep instance-wide defaults under your platform team. Check that a test organization admin cannot change the instance policy and that role grants on the organization match the written responsibility split.
Account takeover through self-registration
If self-registration is open on a routed domain, a person who controls an address at that domain may create a local account that competes with the federated identity for the same person. Decide per organization whether self-registration is allowed, and where it is, whether a verified email is required before access is granted. Check that registration is disabled for domains that must only sign in through the customer identity provider, and test a registration attempt with an address on each routed domain.
Login policy set at the wrong level
Setting a login policy at instance level when it should apply to one customer, or the reverse, changes behavior for users nobody meant to affect. The result is also harder to explain in an audit, because the effective policy depends on which level a user's organization inherits from. Keep a written map of which settings live at instance level and which at organization level. Check that a sample user from each organization shows the expected login path and that changes are recorded with the administrator who made them.
Unclear audit trail for routed logins
When a login is routed through discovery, the record must show which organization handled it, which identity provider was used and which policy applied. Without this, an investigator cannot tell whether a login went to the expected provider or was routed by mistake. Confirm in your own environment which events, fields and retention settings Zitadel gives you, and forward them to the log platform your security team reviews. Check that a test login per organization produces an event that names the organization and provider.
Questions buyers ask about domain discovery before hiring help
What does domain discovery setup cost and what drives the effort?
The cost depends on the written scope, not on a list price, because DeployOpen does not publish one and quotes follow from the agreed scope. The main effort drivers are how many organizations and domains you need to route, how many identity providers are involved, whether each provider's login policy differs, and how much testing and documentation you want delivered. Setup is a one-time cost, while ongoing support, upgrades and testing are recurring and usually sold as retainers. Ask any partner for a quote that lists each organization, domain, provider and test case separately. For Zitadel itself, the self-hosted software is open source, and plan or Enterprise support terms are listed on the Zitadel pricing page, which you should check directly.
How long does a typical domain discovery setup take?
No fixed duration applies because the timeline depends on the factors that change the work. The main ones are the number of customer organizations, whether their domains are already verified, how quickly each customer provides identity provider metadata, and whether the Zitadel deployment already exists. Delays most often come from waiting on customer DNS changes and on provider configuration by the customer's own administrators, not from the Zitadel settings themselves. Ask for a milestone plan in the written scope that names which steps depend on your team and which depend on each customer. Confirm the Zitadel version you run before planning, since the supported configuration details depend on it.
What must we provide before domain discovery work starts?
You need to provide the inputs that only your organization or your customers hold. These are typically:
- The list of organization domains and proof that you control or can verify each one
- Identity provider metadata or client details for each customer, such as OIDC client IDs or SAML metadata, with the signing certificate expectations
- Administrator access to the Zitadel instance and the relevant organizations, with a named owner for login policy decisions
- A decision on which accounts are created automatically and which are linked, and the password and MFA rules for users who stay on local login
Also confirm who holds the DNS zone and who can approve identity provider changes, because both often sit outside the platform team.
Can an internal team set up domain discovery without a partner?
Yes, an internal team with Zitadel administration skills and access to DNS and the customer identity providers can do it alone. The work is mainly configuration, testing and documentation rather than custom code, but it requires careful checks of instance and organization login policies, because the order of settings determines what a user sees. The risk for internal teams is usually the first multi-customer rollout: a single misrouted domain can send a user to the wrong provider. A partner is most useful when you need a documented test matrix, a review by your security team, or a repeatable process for each new customer. Decide based on your staff's Zitadel experience and how many customers will go through the process.
How does domain discovery change when a customer adds or removes an identity provider?
Adding or removing a provider changes the organization's login configuration, not the routing model you designed. When a customer adds an identity provider, you typically need to register the provider in the right organization, confirm the domain mapping still points to the correct login path, and test a sample user from each domain. Removing a provider requires a plan for existing users who depend on it, including whether they fall back to local login, and whether their linked accounts stay in place. Keep a change record for each customer, because identity provider changes are a common source of access incidents. Ongoing testing after changes is usually covered by a retainer rather than a one-time setup.
What security checks should we expect around domain discovery?
Expect the work to test that routing cannot be abused and that each domain reaches only its intended login path. Key checks include verifying that a domain cannot be claimed by an organization that does not own it, confirming that the instance login policy does not weaken MFA for users routed to local login, and reviewing which administrators can change organization domains. Ask for test evidence for each customer domain, including a user on each provider and a user on password plus MFA. Security testing of the login flow can be scoped separately as part of a broader application or infrastructure review.
Does DeployOpen provide compliance evidence for domain discovery?
DeployOpen can prepare the configuration records, test results and access review evidence that your compliance team uses, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those decisions. Ask for documented settings per organization, a record of who approved each identity provider, and the test results from the rollout. Any statement about the vendor's own certifications should come from the Zitadel pricing page, where the vendor lists them, and you should verify them with the vendor before relying on them.
What DeployOpen delivers for domain discovery
A DeployOpen engagement for domain discovery starts with a written scope that names the organization and domain model before any configuration changes are made. For this topic, that scope typically covers the instance and organization layout, the list of customer domains to route, the verified domain for each organization, and the login policy each organization inherits or overrides from the instance. It also covers which identity provider handles each domain, such as Entra ID for one customer and password plus MFA for another, and how the org scope is passed from the login page so that the right provider is selected. The deliverables are agreed in writing with your team so that every routing decision has an owner.
Configuration happens in your own Zitadel deployment, in the infrastructure you control, and is applied through the console or the APIs according to what your team prefers to keep under version control. DeployOpen builds test cases for each domain and each policy: a user from each routed domain should reach the expected provider, a user from an unregistered domain should fall through to the instance default, and a domain that is not yet verified should not redirect anyone. The test set is kept with the handover so your administrators can rerun it after a change, an upgrade or a new customer onboarding. Confirm the exact verification steps and the supported provider options against the Zitadel documentation for your version before you finalize the test plan.
Handover documentation records the domain-to-organization map, the provider and policy assigned to each organization, the verification procedure, the test cases with expected results, and the ownership of each domain record. Timelines, effort and fees are agreed in writing before work starts, and DeployOpen does not publish a price list. A quote follows from the written scope, so ask for the scope to list the number of organizations, the number of domains per organization, the identity providers involved and the number of policy variants to test, since these are the main drivers of effort.
How DeployOpen scopes, builds and supports domain discovery
DeployOpen plans, builds, documents and supports Zitadel domain discovery inside your own infrastructure. Each engagement starts from a written scope that names your domains, organizations, identity providers and login policies, so routing behavior is agreed before anything changes.
How we scope
- Inventory every customer email domain and map each one to the organization that should own it.
- Record which identity provider serves each domain, and which users keep local password plus MFA login.
- Define instance-level and organization-level login policies, and document where each setting applies.
- Agree in writing which organizations, domains and identity providers are in scope and which are not.
How we build
- Configure organization domains and confirm domain verification for each customer before routing is enabled.
- Set up identity providers at organization scope so one customer's provider never serves another customer.
- Test sample logins for each domain path, including an unknown domain and a domain with no provider.
- Check the org scope parameter in each application's authorization requests to confirm the expected organization is used.
How we hand over
- Deliver a routing matrix listing each domain, organization, provider, login policy and owner.
- Document the steps to add a domain, verify it, and attach an identity provider without breaking existing routes.
- Provide runbooks for common faults, such as a verification record that expired or a provider metadata change.
- Walk your administrators through the console and API tasks they will perform after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, scoped in writing.
- Retesting after Zitadel upgrades confirms that domain routing and org scope behavior still match the matrix.
- Ask any provider to confirm the current capabilities of your Zitadel version before committing to a design.

