Self-service B2B customer onboarding with Zitadel: what it covers and when you need it
A SaaS team wants a new business customer to sign up, get a working tenant and have its own administrator start inviting users without opening a ticket. In Zitadel, that workflow depends on three documented concepts: instances, which are virtual tenants with full data isolation; organizations, which sit inside an instance and hold projects and users; and projects, which group applications, roles and grants. This page explains how to automate the creation of a customer organization, the assignment of its first admin, the organization registration settings, verified domains and the first SSO connection. It also helps you decide whether this automation is worth building now or whether manual provisioning by your own team is the better fit for your current customer volume and risk profile.
The decision starts with the boundary. Most B2B products create one organization per customer inside a single instance, which keeps onboarding to API calls against your own instance. Teams that need a separate domain, issuer or full set of settings per customer will need virtual instances, and onboarding then also covers instance creation, which carries a different operational cost. Confirm this choice with the sibling topic on tenant boundaries before you write any onboarding code, because changing the boundary later means moving users and settings between tenants.
Manual provisioning is often enough while sign-ups arrive in small batches and an engineer can review each customer's domain and first admin by hand. Build the automation when sign-ups are frequent, when customers expect instant access, or when a missed domain check or an admin granted to the wrong person would create a security or contractual problem. Ask your team to define who approves a new organization, how domain ownership is proven, and what a failed step should do before any API work begins.
How to create a customer organization and first admin in Zitadel
This sequence takes a new business customer from a prepared API service account to an organization with a verified first admin who can sign in, so onboarding can be automated and checked at each stage.
Prepare the API service account
An operator on your side creates a machine user in your own Zitadel instance, grants it the instance-level or organization-level permissions needed to create organizations and users, and generates its key for the onboarding script or tool. Confirm the account exists under the correct organization and that its key works with a harmless read call. The exact role names and the permission set should be confirmed against the Zitadel documentation for your version, since permissions differ between releases. Keep the key in your secrets store, not in the script.
Create the customer organization
Using the Console or the management API under the service account, create a new organization named after the customer. Record the organization ID that Zitadel returns, because every later call for this customer depends on it. Confirm the organization appears in the Console organization list and that the API returns it when queried by that ID. If your product stores the mapping between your customer record and this ID, write it now.
Configure organization registration settings
Set the organization's login and registration behavior, including whether users can self-register, which login methods are offered, and whether domain discovery is used. Decide this per customer policy before the first admin is created, so the admin lands in the intended configuration. Verify the settings by reading them back through the Console or API and by opening the organization's login page in a private browser window.
Verify the customer's domain
Add the customer's email domain to the organization and complete the domain verification method Zitadel requires for that domain. Confirm the domain shows as verified in the organization. Verified domains are what allow domain discovery to route that customer's users to the right organization and, where configured, to its identity provider. Do not assume verification completed until the status is shown as verified.
Create or invite the first admin user
Create the first admin user inside the new organization, either directly through the API with a verified email address or by sending an invitation that the customer's contact accepts. Record the user ID and confirm the user appears under the organization's users. If the customer will use their own identity provider later, the admin can still be created first with a local login so that access is never lost during the IdP setup.
Assign the organization admin role
Grant the new user the organization administrator role within the customer's organization so they can manage their own users, SSO and MFA. Limit the grant to that organization and do not give the customer any instance-level role. Confirm the role appears on the user's grants and that the admin can open the organization's management views. The role names available in your Zitadel version should be checked against its documentation before scripting the grant.
Verify the first admin can sign in
Have the customer's admin complete a sign-in through the organization's login page, set up their credentials or passkey as your policy requires, and reach the admin view. Confirm the session is scoped to the customer's organization and not to your own instance. This check closes the onboarding: the organization exists, the admin is verified, and the customer can continue on their own.
Repeat the sequence through the Zitadel APIs
Every step above can run through the Zitadel APIs, which lets your sign-up flow perform organization creation, domain verification, user creation and role assignment without manual Console work. Build the script so each call checks its response and stops on failure, and log the returned IDs against your customer record. Test the full run in a staging environment first, and confirm the endpoints and payloads against the API documentation for your version.
Registration, domain and identity options for each new customer
This table compares the onboarding choices a team makes for each new business customer in Zitadel, from who creates the first user to who configures the first SSO connection. Read each row as a decision: the first column names the choice, and the other columns say when it fits and what it means for support and security. Confirm the exact registration and domain settings against the Zitadel version you deploy before you commit to a flow.
| Decision | What it looks like | When it fits | Support and security effect |
|---|---|---|---|
| Self-registration | The customer signs up through a registration page and Zitadel creates the user, with the organization set up by your own flow | Low-touch products where accounts start small and each sign-up is a single person | Your team owns abuse controls, email verification and the rule for who may create an organization; confirm which registration options your version exposes |
| Admin-created users | Your operations or sales team creates the organization and its first admin before the customer logs in | Enterprise contracts where a named contact is agreed before access is granted | Lower risk of unknown sign-ups, but every onboarding depends on your staff, so the queue and handoff must be tracked |
| Invitation-based onboarding | The first admin receives an invitation and sets up their own credentials and MFA | Customers who want their own admin to control access from day one | Invitation links are bearer-style secrets, so set expiry and single use rules and confirm how your version handles them |
| Verified domain handling | A domain is verified for the organization so that matching email addresses are routed to that customer | Products where users sign in with corporate email and domain ownership proof matters | Domain verification shows control of the domain, but it does not prove who the person is; confirm how unverified domains behave |
| First SSO connection set up by your team | Your engineers configure the customer's identity provider in Zitadel during onboarding | Large or regulated customers that need a tested configuration before go-live | Your team handles client secrets and metadata for each tenant, so define who stores and rotates them and who signs off the test |
| First SSO connection set up by the customer admin | The customer's own admin connects Entra ID, Okta or a SAML provider to their organization | Customers with an identity team that wants control and can run their own test | Reduces your support load but moves misconfiguration risk to the customer, so provide a checklist and a test user plan |
| Hybrid setup | Your team creates the organization and verifies the domain, while the customer admin finishes the SSO connection | Most B2B products that want a fast start with customer ownership of login policy | Split responsibilities must be written down, including who can change the identity provider after go-live |
Verified domains and the first SSO connection for a new customer
Domain verification is what lets Zitadel send a user who enters a work email address on a shared login page to the correct customer organization and its identity provider. Without a verified domain, a sign-in for an address such as someone@customer.example cannot be matched safely to one organization, because any tenant could claim a domain it does not control. Your onboarding flow should register the customer's domain on the new organization, complete the verification step, and only then attach an identity provider. Confirm in the Zitadel documentation for your version the exact verification method, who must perform it (usually someone with DNS access at the customer), and whether domain-based routing at login depends on the verified status.
The first identity provider is attached to one customer organization, so its settings apply only to that tenant. Choose the type your customer uses: Entra ID, Okta, or a generic OIDC or SAML provider. Each type needs an application registered on the customer side, a redirect or callback URL copied from Zitadel, and client credentials or signing metadata returned to you. Map the email and name attributes deliberately, because login matching depends on them. Check the field names, callback URL format and metadata requirements for your chosen provider in the Zitadel identity provider documentation before you send the customer any instructions.
Before handing over, decide three things: whether the customer's admins or your team create this first connection, whether the organization should require SSO for all users, and how existing local accounts on the same domain will be handled. Keep at least one local administrator path that works if the customer's IdP is unavailable, and document who holds it. Test with a standard user, not an administrator, in a clean browser session. Confirm that the user lands in the correct organization, that the expected attributes arrive, and that a user from another customer's domain is not routed into this one. Record the test result as part of the onboarding evidence.
How a new customer signs up and reaches its first SSO login
The flow starts with a sign-up request or a sales handoff, which the provisioning service turns into a call to the Zitadel API. Zitadel then creates the organization and its first admin, and the customer's domain must be verified before an identity provider is attached. The last hop is the first user signing in through the customer's own IdP. The trust boundary between the provisioning service and the Zitadel instance is where credentials, scopes and audit logging should be checked.
Onboarding flow from sign-up to the first federated login, with the provisioning and Zitadel trust boundary marked.
Security controls to design before automated sign-up goes live
Automated sign-up creates organizations, domains and admins without a person reviewing each request, so the controls have to be in place before the first customer arrives. The cards below cover the service account, domain ownership, registration abuse, audit trail and the line between your administrators and customer administrators.
Scope the provisioning service account
The service account that creates organizations and first admins should hold only the roles that task needs, and nothing that lets it edit your own project, instance settings or other customers. Create it in a dedicated organization, issue it a short-lived client secret or key, and store that credential in your secrets manager. To verify, call the create-organization and create-user endpoints with it and then attempt a project or instance settings change, which should be refused.
Zitadel APIs docsRequire verified domains before login
A customer that claims a domain it does not control can send an invitation or create a user with that address, which opens a path to account takeover once SSO or domain discovery routes logins to that organization. Keep domain verification mandatory in the organization settings, and do not let self-registered users attach any domain to an organization. Test by registering an unverified domain and confirming that SSO discovery and domain-based login do not pick it up.
Limit self-registration and abuse
Decide which sign-up paths are open: public self-registration, invitation only, or admin-created accounts. Where public registration is on, enable rate limits and confirm the email address before any organization or admin is created. Automated sign-up is a common target for scripted account creation, so run the flow with a bot-style script in staging and check that the limits trigger and that no organization is created without a confirmed owner.
Keep provisioning actions in the audit trail
Every organization creation, domain verification, admin grant and IdP link should be recorded with the actor, the time and the target organization, and the records should reach a log store your security team can query. Confirm which events Zitadel writes to its audit trail for your version, how long they are kept, and whether they are exported. Test by running one full onboarding and checking that each step appears with the service account as the actor.
Separate your administrators from customer administrators
Your own instance administrators should sit in a separate organization from customer organizations, so that a customer admin cannot reach platform settings and your staff do not use customer scopes for routine work. Assign organization administrator roles deliberately, and review which settings an organization admin can override. Verify by signing in as a customer admin and attempting to change instance-level policies, which should fail.
Review the first admin's access on day one
The first admin created by automated onboarding holds the most power in a new customer organization, so the flow should force a password or passkey setup and MFA enrollment before any SSO or role change. Record who approved the organization and which roles were granted, and provide a way for your support team to disable or transfer that admin. Test by completing onboarding with a new identity and confirming that the admin cannot act until enrollment is finished.
Questions buyers ask before automating B2B onboarding in Zitadel
What drives the cost and effort of building B2B onboarding automation in Zitadel?
The cost is driven mostly by how many onboarding paths you must automate and how much of the customer's setup you want to hand to them. A build that only creates an organization and a first admin through the API is small. Costs rise when you add verified domain checks, per-customer identity provider setup, branding defaults, billing hooks, and support for several provisioning paths. Expect two cost components: the one-time build of the automation and its tests, and the recurring work to run it. Ask any partner for a quote that lists each flow, each identity provider type, the environments covered, and who owns the code after handover. DeployOpen plans from a written scope, so the quote follows from that list.
How long does a typical Zitadel onboarding build take?
Duration depends on the number of identity providers and onboarding flows, not on the Zitadel product itself. A single self-service path with one admin role and no customer IdP takes far less time than several paths that each connect a different Entra ID, Okta or SAML provider with domain discovery. The main drivers are the number of distinct IdP types, the number of flows (self-service sign-up, sales-assisted creation, invited admins), the depth of testing against real customer tenants, and the approval steps your own security team requires. Ask for a timeline that is tied to the written flow list, and confirm which parts depend on your customers' IdP administrators being available.
What does the work need from our internal team?
You need named owners for four things: the product decisions about tenant structure and roles, the API and deployment environment where the automation runs, the identity administrators who will approve customer IdP settings, and a sign-off contact for security reviews. Engineers should be able to read the Zitadel API documentation and manage secrets for the service account that creates organizations. Your support team also needs a clear runbook for failed onboarding steps. If these owners are not available, the build will stall regardless of who writes the code, so confirm them before the scope is signed.
Can our internal team build Zitadel onboarding automation alone?
Often yes, if you already run Zitadel in production and have engineers comfortable with OIDC, the Zitadel APIs and infrastructure as code. The harder parts are usually not the API calls. They are the edge cases: domain verification failures, partial completion when one step fails, identity provider misconfiguration by customers, and keeping staging and production settings aligned. Teams that build alone should plan time for those cases and for documentation that their support staff can follow. Teams without prior Zitadel experience often benefit from a fixed-scope engagement that covers design, build, handover and documentation, with the written scope defining what is delivered.
How do Enterprise support and technical account management relate to this work?
Zitadel's Enterprise plan includes custom support agreements and technical account management, according to Zitadel's pricing page. These cover the vendor relationship: product support, escalation paths and account-level guidance. They do not replace the design and build of your onboarding flows, which remain your code and your configuration. Use Enterprise support to resolve platform questions during the build and after go-live, and confirm the support terms in writing, including response expectations, before you assume them in your runbook. DeployOpen does not provide Zitadel's vendor support, so the two should be scoped separately.
How does a self-hosted onboarding build differ from a managed Zitadel Cloud setup?
In a managed Zitadel Cloud setup, the vendor operates the instance, so your automation focuses on the API calls, organization settings and identity provider flows. Self-hosting shifts operations into your infrastructure: you run the Kubernetes or Docker deployment, the PostgreSQL database (versions 14 through 18 are supported), backups, upgrades and TLS, and the onboarding automation must work with that operating model. Zitadel Cloud pricing lists a Free plan at US$0 per month with 100 daily active users, a Pro plan at US$100 per month including 25,000 daily active users, and an Enterprise plan with custom pricing for self-hosted or cloud deployments. Confirm with Zitadel which plan and hosting model match your user volumes and data residency rules before you fix the design.
What should we check before approving the onboarding design?
Confirm that every onboarding step is idempotent, so a retry does not create duplicate organizations. Check how verified domains are proven and who can change them. Decide which customer admins may configure their own identity provider and which changes need your review. Verify that the automation writes audit records you can retain. Finally, agree on a test plan that includes at least one customer IdP per supported protocol and a failure scenario for each step. These checks reduce the risk of a tenant being created with the wrong domain or the wrong admin.
How DeployOpen scopes and delivers Zitadel onboarding automation
DeployOpen plans, builds, tests and documents self-service customer onboarding in Zitadel inside infrastructure you control. Work starts from a written scope that sets the onboarding flow, the Zitadel settings it depends on, and the evidence your teams receive at handover. Each step is agreed before the build begins.
How we scope
- Map the sign-up journey from first request to a working first admin login, with every decision point written down.
- Confirm the organization model, instance boundary and which registration settings your customers may change themselves.
- Agree in writing which verified domains, first SSO connections and admin roles are in scope, and which are excluded.
How we build
- Script organization creation and first admin invitation through the Zitadel Console or API, with repeatable steps your team can rerun.
- Configure registration settings and domain verification, then test the first customer SSO connection end to end.
- Test failure paths such as duplicate domains, expired invitations and misconfigured identity providers before handover.
How we hand over
- Deliver source for onboarding scripts, configuration notes and a runbook covering each onboarding step and its rollback.
- Document the decisions made during scoping, including tenant boundary choices and why each registration setting is set as it is.
- Walk your platform and support teams through the runbook and confirm they can run a new onboarding without DeployOpen.
How we support
- Support is available as a retainer for changes to onboarding flows, Zitadel version upgrades and new identity provider connections.
- Ask any quote for the work to name who runs the Zitadel environment, who owns the scripts and who approves changes.
- Ask whether continuous security testing of the onboarding path should be part of ongoing support, and at what scope.

