How to set up Zitadel multi-tenant B2B with organizations before the first customer signs in
A SaaS or platform team that needs separate customer tenants, customer administrators and partner access in one identity system has one core design task before anything else: deciding how Zitadel instances, organizations and projects map to your customers. Instances are the hard isolation boundary, and organizations are where each customer's users and projects live. Projects then group the applications, roles and grants that those users work with. Get this mapping wrong and the rest of the rollout inherits the error.
The difficulty is that the boundary between data isolation and shared administration is easy to blur. An instance is a virtual tenant with full data isolation, so anything placed in a separate instance cannot be administered from another one without a separate setup. Inside one instance, organizations separate customers while sharing that instance's administration and configuration. Before choosing, confirm with your own security and compliance teams whether a shared administrative plane is acceptable for each customer segment, and whether any customer requires its own instance. Also confirm how your partners will authenticate, since partner access often needs a grant that crosses organizations, and the documentation on Zitadel organizations explains which objects can be shared that way.
Changes are the costly part. Moving a customer's users between organizations, or restructuring projects and grants once people have signed in, affects sessions, role assignments and the applications that trust them. Write down the mapping rules, the naming convention for organizations and projects, and who may create organizations for a new customer. Then test one realistic onboarding and one partner grant end to end in a non-production instance before the first customer signs in. Treat that test as the acceptance criterion for the design, not as a demonstration.
Instances, organizations, projects and grants in Zitadel
Zitadel separates tenancy into layers, and each layer answers a different question: how far data is isolated, who manages which users, which applications are grouped, and who may use them. Designing these four or five pieces together before the first tenant is created is what keeps customer onboarding and delegated administration manageable later.
Instances as virtual tenants
An instance is the outermost tenant in Zitadel and carries full data isolation from other instances. Use a separate instance only when two groups must never share users, settings or administrators, for example a regulated customer population that requires its own boundary. Within one instance, every organization and project shares the same configuration baseline, so decide early how many instances your platform needs. Confirm the current limits on instance creation and how instances are provisioned in your version with the documentation.
Organizations docsOrganizations hold users
Organizations sit inside an instance and are where projects and users live. A common pattern is one organization per customer or partner, which lets each customer's users, administrators and login policies stay apart while the platform team manages the instance. Check how user identifiers and login names behave across organizations, since users with the same email in different organizations are a frequent source of confusion during testing.
Projects group applications and roles
A project groups the applications, roles and grants that belong to one product or service. Roles defined in a project are what applications check when they read a token, so role design belongs to the product owner rather than to each customer. Keep one project per product in the owning organization, and avoid creating a project for every customer unless the customer's application code is truly separate.
Grants share projects across organizations
A project grant lets another organization use a project owned elsewhere in the instance, which is how a platform organization can expose one application to many customer organizations. Each grant can carry a selected set of roles, so customers receive only the access they need. Verify how grants are created, which roles can be granted, and who may manage them, because grant design is where delegated administration is most often misconfigured.
Organizations docsPer-organization identity provider federation
Identity provider settings can differ by organization, so a customer can sign in with its own Entra ID, Okta or LDAP directory while another customer uses a different provider. This setting belongs to the organization, not the instance, which keeps customer directories isolated. Confirm which providers each organization may configure, who can add them, and how just-in-time user creation and attribute mapping behave in your version.
Identity provider docsHow instances, organizations and project grants connect
The diagram starts with a self-hosted Zitadel deployment that holds a platform instance and a separate instance for a regulated customer group. Inside the platform instance, a provider organization owns the project and its applications and roles. Each customer organization keeps its own users and identity provider, and a project grant lets that customer organization use the provider project without copying it. Check the dashed boundaries: data and administration stop at the instance line, and a grant crosses only the organization line it names.
Instances isolate data, and project grants let customer organizations use a provider project.
Instance per customer or organization per customer?
This table compares three ways to lay out customers in Zitadel: one shared instance with an organization per customer, one instance per customer or customer group, and a shared provider organization that grants projects to customer organizations. Read each row against your own customer count, isolation requirements and operating model, then confirm Zitadel's current limits with the vendor for your scale.
| Option | When it fits | Operational cost and evidence |
|---|---|---|
| One instance, organization per customer | Many customers that share the same applications, branding and admin team, and where a common operating model matters more than hard data separation | One upgrade, one backup set and one monitoring stack to run. Isolation rests on organization boundaries inside one instance, so reviewers will ask how cross-organization access is blocked and tested |
| One instance per customer or customer group | Customers with strict isolation demands, separate regulators, or contractual needs for their own admin scope and data residency | Multiplies upgrades, backups, monitoring and admin tooling per instance. Isolation evidence is simpler to present, but fleet automation becomes the main cost to control |
| Shared provider organization with project grants | A software provider serving many customer organizations from one application project, where customers consume roles or grants without owning the project | Keeps the application definition in one place. Assessors will look at who can create grants and roles, and how grant changes are logged and reviewed |
| Delegated administration per customer organization | Customers who need to manage their own users, identity providers and role assignments without access to other tenants | Lowers day-to-day admin load on the provider team. Requires documented delegation rules and periodic review of who holds organization admin rights |
| Upgrade effort across the fleet | Any model with more than one instance, or any model where a single instance serves many organizations with different change windows | Confirm with the vendor how upgrades and database migrations apply to each instance and how long a fleet rollout takes at your count |
| Backup and restore scope | Choose based on whether one customer's data must be restored without touching others | Single instance restores affect every organization in it. Per-instance backups isolate recovery but multiply schedules and restore tests |
| Monitoring and admin tooling | Consider how many consoles, dashboards and automation pipelines your team must run | Per-instance models need templated configuration, such as infrastructure as code, to avoid drift between tenants. Ask the vendor which admin APIs fit your automation |
| Isolation evidence for a security review | Required whenever customers ask how their data is separated from others | Document the tenancy boundary, test cross-organization access, and keep logs that show admin actions per organization. Confirm the isolation guarantees Zitadel documents for your chosen model |
How to build the Zitadel multi-tenant B2B setup step by step
This sequence takes a team from a written tenant model to a verified pilot customer, with each step closing on a check that proves isolation, identity federation and grant visibility work as designed.
Write the tenant model before touching the console
Record who the tenants are, which customer organizations will exist, which applications the provider runs, and which people will administer each level. Include the rule that a customer admin should never see another customer's users. Agree this document with the security and product owners before any configuration. Done means the model is signed off and every later step can be traced back to it.
Decide instance boundaries and record the reasons
Zitadel uses instances as virtual tenants with full data isolation, and organizations inside an instance hold projects and users. Decide whether all customers share one instance with separate organizations, or whether a customer needs its own instance for isolation or data reasons. Confirm the choice against Zitadel's organization concepts documentation. Done means you have a written boundary decision that names what would justify creating another instance.
Create the instance and the provider organization
Deploy the instance in your environment (see the self-hosting overview for Docker Compose, Kubernetes or binaries) and create the provider organization that will own the shared applications, roles and administrators. Keep the platform team's administrator accounts in this organization only. Check: sign in as the provider administrator and confirm the organization appears as the owner of the shared projects.
Create projects and roles for the provider applications
Create one project per product or application the provider operates, then define the roles that represent what a user may do inside each one. Register the OIDC or SAML clients under the right project. Keep role names stable because customer organizations will be granted subsets of them. Check: a test user in the provider organization receives the expected roles and the token contains only the roles that were defined.
Create customer organizations and their first users
Create one organization per customer under the instance, and add the customer's users there. Give each organization a clear naming convention that matches the tenant model. Check: log in as a user from customer A and confirm the user list shows only customer A's accounts, with no visibility into customer B.
Configure per-organization identity providers
For customers that use their own identity provider, such as Entra ID, Okta or an LDAP directory, configure that provider on the customer's organization only. Zitadel documents that each customer organization can use a different identity provider. Test one federated login end to end. Check: a federated sign-in lands in the correct organization, and a customer on another provider is not affected.
Add project grants and delegate administration
Grant the provider's projects to each customer organization with only the roles that customer has purchased, then assign customer-side administrators a role inside their own organization. Keep platform-wide administration out of customer hands. Check: confirm the granted project is visible in the customer organization, the ungranted project is not, and the customer admin can manage users in their organization but cannot change grants or the provider's applications.
Onboard a first pilot customer and test the boundaries
Run one pilot customer through the full path: organization creation, identity provider setup if needed, grant, admin hand-over and a user sign-in. Repeat the isolation checks from the earlier steps with a second organization present. Document any gaps and fix them before a wider rollout. Done means the pilot evidence, including the check results, is kept with the tenant model.
How the tenant design changes across Docker, Kubernetes and air-gapped deployments
Zitadel documents self-hosting on Linux and macOS binaries, Docker Compose and Kubernetes (see the self-hosting overview). A single node suits a platform team that wants to test the tenant model before production. Every instance you add brings its own processes and its own database, so the host's CPU, memory and disk set the practical limit on how many instances can run side by side.
- Instance count: Each instance runs its own Zitadel process and data, so plan one instance per environment unless you have load tested more on the same host.
- Database: PostgreSQL can run on the same host or a separate one. Supported versions are 14 through 18, so confirm your image or package falls in that range.
- Identity provider connectivity: Calls to Entra ID, Okta or Google leave directly from the host, so the host needs DNS resolution and outbound HTTPS to each provider.
- Backups: Back up each instance's PostgreSQL database and its configuration, including master key handling, on a separate schedule, and test a restore on a second host before you rely on it.
Confirm the Compose file and image tag match your target release, and ask your team to load test the instance count on the hardware you plan to use.
The self-hosting documentation recommends a Kubernetes cluster with the official Helm chart for high availability. This model suits organizations that need several replicas, planned rollouts and a repeatable upgrade path. The tenant design still starts at the instance level: each new instance is a deployment decision in its own right, while organizations inside an instance are created through the console or API.
- Instance count: Decide whether each customer group gets its own instance or shares one. Separate instances mean separate Helm releases, databases and upgrade windows.
- Database: Use a PostgreSQL service your team can back up and restore, and confirm its version falls within the supported range of 14 through 18.
- Identity provider connectivity: Egress policies, proxies and DNS rules in the cluster decide whether each organization's federated provider is reachable, so test each provider from a pod in the same namespace.
- Backups: Snapshot each instance's database on its own schedule, and restore into a staging namespace to confirm that every organization and its users come back intact.
Confirm the chart version and the upgrade notes for your target release, and check which instance count your cluster and database tier can support before you pin a version.
Air-gapped and restricted networks change the tenant design more than the other two models, because the login system cannot depend on public identity providers or cloud services being reachable. Organizations inside an instance still separate customers cleanly, as described in the organizations concept. Any federated provider, however, must sit inside the same boundary or be reachable through an approved path.
- Instance count: Keep the number of instances small. Each one adds an isolated database, master key material and a backup set to manage inside the restricted zone.
- Software delivery: Confirm how images, Helm charts and binaries reach the network through an internal mirror or approved transfer process, and verify each artifact against the release you approved.
- Identity provider connectivity: Federation to hosted providers will fail without egress, so plan internal OIDC, SAML or LDAP sources for each customer organization that needs federation.
- Backups: Store encrypted database backups and key material inside the boundary, and rehearse restores without any external service available.
Ask your security team which outbound endpoints the policy allows, if any, before you finalize the organization design and the federation plan.
Delegated administration and access control for customer admins
Multi-tenant B2B identity puts customer administrators inside the same platform that runs your own operations. The controls below separate who can change what, and they only hold if each role and permission is checked against the Zitadel version you run, not assumed from a design diagram.
Confine customer admins to their organization
In Zitadel, users, projects and most settings live inside an organization within an instance. A customer admin should hold rights only in the organization they serve. Test this directly: sign in as a customer admin, attempt to read or change users, applications and settings in a sibling organization, and record every path that succeeds. Confirm the exact role names and the scope each one carries in the current documentation before you assign them.
Organizations docsKeep platform admins separate
Instance-level administrators can reach every organization, so their accounts are the highest-value target in the deployment. Keep them out of day-to-day tenant work, give them a separate login path with stronger authentication, and avoid reusing them as customer-facing support accounts. Ask which instance roles exist in your version and which can create organizations, change instance policies or manage other administrators.
Control which projects are granted outward
A project grant lets another organization use your project's roles and applications. Decide which projects may be granted, to which organizations, and who approves each grant. Treat a grant as a data-sharing decision: it determines which users in the receiving organization can obtain access to your application. Review the grant list on a schedule and remove grants that no longer match a contract.
Audit grant and role changes
Delegated administration fails quietly when a grant or role assignment is added and nobody notices. Confirm that Zitadel's audit or event data records who created, changed or removed a grant, a role or an administrator, and that those records leave the cluster to your log store. Test the trail by making a harmless grant change in a non-production instance and finding it afterward.
Restrict cross-organization access
Users in one organization should not gain access to another organization's applications through shared identity, shared roles or broad grants. Check whether any user, service account or machine client spans organizations, and whether any role applies outside its intended scope. Verify token contents for a sample user in each organization, since claims show what an application will actually trust.
Verify each permission before relying on it
Role names, default permissions and admin capabilities change between releases, so a control written against one version can be wrong on another. Before go-live, build a short permission matrix for each role, mark the expected and actual result for each action, and repeat the check after every upgrade. Use the documentation for your installed version as the authority, not this summary.
What drives the effort of multi-tenant organization design
This table lists the factors that change how much work a Zitadel multi-tenant B2B design takes, how each one raises effort, and how to keep it contained. Read it before scoping, because most of the effort comes from decisions made in the first design sessions rather than from the build itself.
| Driver | Why it raises effort | How to keep it down |
|---|---|---|
| Number of customer organizations | Each organization needs its own users, roles, grants and admin delegation to be set up and checked, so effort grows with the count. | Define a standard organization template and provision from it, rather than configuring each customer by hand. |
| Number of instances | Each instance is a separate virtual tenant with full data isolation, so every instance adds its own configuration, backup and upgrade work. | Use one instance for many customers where isolation rules allow, and add instances only for hard isolation or residency needs. |
| Identity providers per customer | Each customer organization can federate with its own provider, which means separate metadata, claim mapping, testing and support contacts. | Limit supported providers to a short list and document the onboarding steps for each one. |
| Project and role count | More projects, roles and application grants increase the permission model that must be designed, tested and explained to auditors. | Keep a small set of reusable roles and avoid one project per customer unless a customer needs separate applications. |
| Grant patterns across organizations | Project grants that share applications between organizations need careful role mapping, and each new pattern adds review work. | Agree a fixed grant model in writing and reuse it for every new customer or partner. |
| Login customization per organization | Branding and per-organization login settings must be built, previewed and kept working through upgrades. | Limit branding to a few approved themes and keep custom logic in documented, version-controlled configuration. |
| Migration of existing users | Moving users from Auth0, Keycloak or another system needs mapping of accounts, passwords or just-in-time flows and client re-registration. | Scope migration per organization in waves and confirm the chosen migration approach before design starts. |
| Compliance evidence for tenant isolation | Assessors may ask to see how tenants are separated, who administers each one and how access is logged, which takes documented proof for each design choice. | Keep a design record, a tenant access matrix and sample audit log exports from the start. |
| Environments such as staging and production | Each environment repeats instance, organization and grant setup, and configuration drift between them causes failed releases. | Manage organization and project configuration as code and promote the same definitions through each environment. |
What to back up, upgrade and document after tenant setup
Once instances, organizations and grants are in place, the tenant model keeps changing: new customers arrive, administrators rotate, and Zitadel releases move forward. The cards below cover the recurring work that keeps that model recoverable, auditable and current, and each one points to the control that makes the next change safe.
Per-instance backups and restore tests
Zitadel keeps its data in PostgreSQL, and each instance is a fully isolated tenant, so backups should be planned per instance and verified with restores rather than assumed. Ask whether your backup tooling can restore a single instance without touching others, and record how long a restore into a clean environment actually takes. Confirm that the Zitadel master key is backed up separately from the database, because a restored database without its key cannot be used.
- Supported PostgreSQL versions
- 14 to 18
Upgrade rehearsal in a non-production instance
Every Zitadel upgrade can include database migrations that are hard to reverse, so each release should be rehearsed against a copy of production data in a non-production instance first. Track the v4 release line on GitHub, read the release notes for breaking changes to login flows or API behavior, and time the rehearsal so you know the production maintenance window. The upgrade procedure itself is covered in the upgrades topic.
Zitadel releasesChange control for organizations, projects and grants
Organizations, projects and project grants define who can see which applications and roles, so an unreviewed change can expose one customer's users to another customer's application. Require a written request for each new organization, grant or role, and record who approved it and when. Review grants quarterly to remove access for customers that have offboarded or changed their subscription.
Organization conceptsFailed login monitoring per organization
Failed sign-ins grouped by organization show whether an attack, a misconfigured identity provider or a broken application is affecting one customer. Set alert thresholds per organization rather than one global threshold, because a large tenant's normal failure rate can hide a small tenant's compromise. Confirm which log fields Zitadel exposes for organization and user identifiers, and route them to the same store your security team already reviews.
Tenant register with identity providers and admins
A tenant register is a single record per organization listing its identity provider, project grants, delegated administrators and contact owner. Without it, nobody can answer which customer uses which federated login or who can approve a grant change during an incident. Review the register at each change control cycle, and reconcile it against the organizations and administrators actually configured in Zitadel.
How to test tenant isolation and delegated admin boundaries
The test plan should try to break the boundaries before any customer relies on them. Write each case as an attempt by a specific identity to reach a specific object, and record what Zitadel is expected to return. Start with cross-tenant access attempts. A customer admin delegated to one organization should be unable to read or change users, projects, applications or grants in another organization, even when they know the object IDs. Repeat the same attempts with a plain customer user, who should have less reach than the admin. Include calls through the Console and through the APIs, because a boundary enforced in one interface can still be open in another. Confirm that the instance you are testing is the one you intended, since instances are the stronger isolation line and organizations sit inside them.
The second group checks what a project grant exposes. For each granted organization, confirm that the grant reaches only the intended project and its roles, and that the granted organization cannot see sibling projects or the granting organization's other applications. Then run login tests through each organization's identity provider, using a test user per provider. Confirm that a user who signs in through one customer's identity provider lands in that organization and cannot reach another organization by changing the organization context in a request. Document the expected organization, project and role for each test user before you start, so that a mismatch is a finding rather than a judgment call.
The third group covers failure. Disable a test organization and confirm that its users cannot sign in and that its delegated admins lose administrative access, while other organizations keep working. Revoke a project grant and confirm that the granted organization loses access to that project within the propagation behavior you have documented, and that existing tokens are handled as the design intends. A safe failure means the request is denied, the error does not reveal other tenants' data or names, and the event appears in the audit trail with the acting identity. Keep the evidence: the written test matrix, the identities and roles used, timestamps, request and response records, audit log extracts and the configuration version under test. Confirm with your own environment and the Zitadel organizations documentation which behaviors apply to your version before you write expected results.
Questions buyers and engineers ask before setting up Zitadel for B2B tenants
How much effort does a multi-tenant Zitadel design take?
Effort depends mostly on how many distinct customer tenants you need to model, how much each one differs, and how many decisions must be settled before any configuration starts. A design that maps one organization per customer with shared projects is far lighter than one where each customer has its own identity provider, its own role model and its own delegated administrators. The main design work covers choosing between instances and organizations, deciding where projects and users live, and setting project grants that let one organization use an application owned by another. Ask any partner to break its estimate into these decisions so you can see which ones your team has already made.
Can our platform team design multi-tenancy in Zitadel without a partner?
Yes, a platform team with solid identity experience can do it, provided it reads the organization and project model carefully and tests the design against real tenant scenarios. The harder parts are usually not the console steps but the decisions: whether a customer needs full data isolation, which administrator roles a customer should hold, and how grants are shared across organizations. Many teams bring in outside help for a short design review rather than the whole build. Be clear with yourself about who will own the design after go-live, since that person will answer every later change request.
What does the work need from our side?
The work needs decisions and named people more than hours. You will need to settle the tenant model, the list of customer organizations and whether each one brings its own identity provider, and the role names your applications expect. You also need named administrator owners on your side who can approve delegated permissions and sign off on the design. Gather the identity provider details early, including protocol, metadata or discovery URLs and the attributes each provider sends, because these shape how users are created and matched. Missing answers in these areas are the most common cause of rework.
How long does a multi-tenant Zitadel setup take, and why does it vary?
Duration varies with the number of tenant types, the number of applications that need project grants, how many customer identity providers must be federated, and how much testing your compliance or security reviewers require. Infrastructure choices also matter: a self-hosted rollout on Kubernetes with the official Helm chart and a PostgreSQL database involves more setup than a single-node Docker Compose test. Ask for a timeline that lists each design decision, each integration and each verification step, and confirm which of these depend on your own approvals. No timeline should be accepted until the tenant model is written down.
Does Zitadel Cloud Enterprise change the design work?
The tenant model stays the same on Zitadel Cloud Enterprise as it does on a self-hosted deployment, because organizations, projects and grants are product concepts rather than hosting choices. What changes is who operates the platform, where data sits, and what support you receive. The Enterprise plan includes custom support agreements and technical account management, which affects operations and escalation rather than the structure of your tenants. Confirm with the vendor which features and limits apply to your chosen plan, and confirm whether your data residency and hosting requirements allow the cloud option at all before comparing designs.
Can we change the multi-tenant design after go-live?
Some changes are straightforward and some are costly, so the answer depends on which layer you are changing. Adding a new customer organization, granting a new project to an existing organization, or adding a role is usually routine administration. Moving users between organizations, splitting one instance into several, or changing how identity providers map users can require data migration and client updates across applications. Because of this, settle the instance boundary and the project structure before onboarding customers, and test any planned restructuring in a non-production environment that uses a copy of your configuration.
What should an engineer check before creating the first customer organization?
Check that the instance boundary matches your isolation requirement, that each customer organization has an agreed naming and administrator model, and that the projects and grants your applications depend on are defined before customers log in. Confirm that the PostgreSQL version you run is on the supported list and that backups are tested, since tenant data lives there. Document how delegated administrators are created and removed, and test that a customer administrator cannot see another organization's users. The Zitadel organizations documentation is the natural starting point for these checks.
How DeployOpen scopes, builds, hands over and supports Zitadel tenant designs
DeployOpen plans and implements Zitadel multi-tenant B2B setups inside your own infrastructure, starting from the instance, organization and project model your customers actually need. Each engagement is agreed as a fixed scope in writing, with deliverables for the tenant design, the build, the tests and the handover documentation. Ongoing support and upgrades are available as a retainer.
How we scope
- Map each customer, partner and workforce group to an organization, and decide which ones need their own identity provider.
- Decide which projects, roles and grants are shared across organizations and which stay inside one tenant.
- Agree in writing which delegated administration roles each customer administrator receives and what they cannot change.
How we build
- Deploy self-hosted Zitadel with PostgreSQL in your cloud accounts, data centers or air-gapped network, using Docker Compose, Kubernetes or the official Helm chart.
- Create the instance, organizations, projects and project grants, then connect test applications over OIDC and SAML to prove each tenant boundary.
- Test cross-organization access, role leakage and administrator permissions, then fix and retest the findings before go-live.
How we hand over
- Deliver the tenant model, naming conventions, role catalogue and grant map as written documentation your team can review.
- Walk your administrators through creating organizations, onboarding a customer administrator and assigning project grants.
- Hand over configuration as code where the deployment allows it, and confirm with your team which settings remain manual.
How we support
- Provide ongoing support, upgrades and continuous testing under a retainer when your tenant model changes.
- Test each Zitadel upgrade and database migration against your tenant design in a staging environment before production.
- Review new customer organizations and identity provider federations against the agreed model so boundaries do not drift over time.

