bworkx.

Identity & access

Zitadel for multi-tenant SaaS

Identity that matches your tenant model instead of bolting tenants onto a single-realm IdP.

Prefer to talk? Book a 30-minute call.

Who it is for

  • B2B SaaS products with organizations, workspaces, or customer tenants.
  • Teams that need delegated administration inside each customer tenant.
  • Product teams that want an API-first identity platform with Terraform and automation.
  • Kubernetes-based products that need a Go identity service with PostgreSQL.

When it is not the right fit

  • Teams that cannot accept the AGPL-3.0 licence after legal review.
  • A simple workforce SSO project with no multi-tenant requirement.
  • A product with no engineering owner for identity and no appetite for automation.

Scope

What is included

The scope is written down before work starts. Anything outside it is a change, with a cost and a date.

A tenant model covering organizations, projects, roles, and delegated administration.

OIDC and SAML application configuration for the product and internal tools.

Branded login and account experience within the platform’s theming model.

Terraform or API automation for tenant and application provisioning.

MFA, session, and account-recovery configuration.

Audit and operational guidance for a multi-tenant deployment.

Hardening, upgrade, and handover documentation.

Delivery

How an engagement runs

  1. Model the tenants

    We define what a tenant is, what belongs to it, who administers it, and how it relates to the product’s data model. The tenant model is the requirement; the product follows.

  2. Design the roles

    Roles, projects, and delegated administration are mapped to the product’s permission model. We avoid a single flat role space that every customer has to share.

  3. Implement

    We configure the platform, the first application cohort, branded login, MFA, and the tenant provisioning path. Automation is built in from the start, not added later.

  4. Automate

    Tenant creation, application registration, and role assignment are scripted through the API or Terraform. Manual tenant setup does not scale past the first few customers.

  5. Harden and hand over

    We review admin access, tokens, sessions, audit, backup, and upgrades. The handover includes the tenant runbook and the automation repository.

Multi-tenancy is an identity design decision

A B2B SaaS product usually starts with one user table and a tenant_id column. That works until a customer asks for delegated administration, separate login branding, or an audit trail scoped to their organisation.

Zitadel treats organizations and delegated administration as first-class concepts. That is its main differentiator: the tenant model is part of the identity platform, not an application-layer workaround.

The tenant model comes first

Before configuring Zitadel, we define:

  • What is a tenant: an organization, a workspace, a legal entity, or a customer account?
  • Who administers it: the customer, the vendor, or both?
  • What can a tenant admin see and change?
  • Which roles are global and which are tenant-scoped?
  • How is a tenant created, suspended, and deleted?
  • What happens to identity data when a tenant leaves?

Those answers shape the projects, roles, and automation. If they are unclear, the platform will encode the ambiguity.

API-first and automation

Zitadel is built for teams that automate. Tenant creation, application registration, and role assignment should be scripts or Terraform, not a manual checklist.

We build the automation path as part of the implementation. A multi-tenant platform with manual onboarding is a platform that cannot scale past its first support queue.

Licence and operations

Zitadel is AGPL-3.0 from version 3. That is a real consideration for a SaaS business. We flag it before the architecture is committed and recommend a legal review where the distribution or modification model is unclear.

Operationally, Zitadel is a Go service with PostgreSQL and a separate login application in recent versions. It is lighter than a JVM stack, but it still needs backup, upgrade, monitoring, and a tenant-aware runbook.

What this service is not

It is not a licence review, a managed hosting service, or a guarantee that AGPL fits your business model. It is implementation and professional services, with the licence and operational trade-offs written down.

Related work

See the approach in practice

Lab builds use synthetic data in the bworkx environment. Reference methods describe how the work is scoped and delivered. Neither is a client case study.

Open-source IAM reference architecture

Reference architecture — tenant models, delegated admin, and federation. Not a client engagement.

Read more

Related reading

The IAM assessment checklist

Eight areas to review before choosing an identity product.

Read the article

Questions

Before you ask

Is Zitadel open source?

Zitadel moved to AGPL-3.0 from version 3. The source is available, but the licence has obligations that need a legal review, especially if you modify and distribute the software or offer it as a service.

Is AGPL a problem for a SaaS product?

It depends on how you use and modify the software. Many organisations can use it as a hosted service without releasing their own application code, but that is a legal question, not a technical one. We flag it early and do not pretend it is the same as Apache-2.0.

Can Zitadel handle workforce SSO too?

Yes, but the stronger fit is customer identity with organizations and delegated administration. For workforce SSO with heavy LDAP or Active Directory federation, Keycloak is often the better anchor.

Does it support SAML?

Yes. Test the specific SAML applications in your estate, because SAML edge cases are where migrations usually slow down.

Can you migrate existing tenants?

Yes, with a staged plan. Tenant structure, users, roles, and application trust need to be mapped before migration. The tenant model is usually the part that needs the most design work.

Identity & access

More in this practice

Other services in this practice. Each is scoped separately.

Authentik implementation

SSO, forward auth, LDAP, and SCIM for internal applications — with a clean deployment and a maintainable flow design.

  • A deployment model for server, worker, database, and backup.
  • A flow design for login, MFA, recovery, and application access.
  • OIDC and SAML integrations for the applications in scope.
  • Forward-auth or proxy protection for applications without native SSO.
See how it works

WSO2 Identity Server

Enterprise CIAM and federation on a mature open-source platform — adaptive MFA, consent, provisioning, and complex identity integration.

  • A platform assessment covering user stores, federation, applications, and operating model.
  • Deployment architecture for the runtime, database, clustering, and backup.
  • OIDC, OAuth2, SAML, and WS-Federation integrations for the applications in scope.
  • LDAP, Active Directory, and JDBC user-store configuration with attribute mapping.
See how it works

Keycloak implementation & migration

Design, deploy, harden, and migrate to Keycloak — SSO, OIDC/SAML, LDAP/AD federation, MFA, and upgrades.

  • Architecture and sizing for the realm, database, clustering, and backup model.
  • Realm, client, role, and group design aligned to the business, not a demo tenant.
  • OIDC and SAML integrations for the applications in scope.
  • LDAP or Active Directory federation, including attribute and group mapping.
See how it works

Next step

Start with the situation, not the solution.

Describe what is happening today, what has been tried, and what a good outcome looks like. We will tell you whether this service is the right fit.