Keycloak multi-tenancy: which tenant model fits your customers
If your SaaS product or shared service serves many customers or business units from one Keycloak, the decision you face is between three models: a realm per tenant, organizations inside one realm, or tenant data kept on clients and groups within a single realm. A tenant is a customer or business unit whose users, sign-in rules and administrators must be kept apart from others. A realm is Keycloak's top-level boundary with its own users, clients, roles and identity providers. An organization is a member grouping inside a realm, with its own domains, membership and linked identity providers. Make this choice before your first customer onboarding, because moving a live tenant population between models later is expensive.
Each model shifts work between isolation, administration and scale. Realm-per-tenant gives the strongest separation of users, keys and settings, but every realm carries its own configuration, so admin effort and cache and startup cost grow with the count. Organizations keep tenants in one realm, which simplifies shared clients, themes and administration, but the tenant boundary then depends on how your application reads organization membership and claims. Tenant data on clients and groups suits small tenant counts or cases where tenants share one login experience, but it leaves enforcement largely to your own code. Confirm which of these your application can enforce at the token and API layer before you commit.
Start by listing your hard requirements: whether tenants need their own signing keys, login themes, password policies or identity providers, how many tenants you expect in the first two years, and whether customer administrators must manage their own users. Then check the current Keycloak release notes and the organization documentation in the Keycloak server administration guide against those requirements, and test your chosen model with at least two tenants in a non-production realm. Ask your DeployOpen contact or your own platform team to confirm limits for your expected tenant count and sizing before the design is final.
How the three tenant models decide the isolation boundary
The decision starts with tenant requirements: whether each customer needs its own administrators, its own identity provider, its own login branding, and how many tenants you expect. Each yes pushes the design toward a stronger boundary. Separate admins and separate upstream identity providers that must stay isolated point toward a realm per tenant, while shared users and shared branding point toward organizations inside one realm. Clients and groups carry tenant data when neither realm nor organization fits, and that choice moves more isolation work into your application. Check each branch against the Keycloak features you plan to use before committing.
Decision path from tenant requirements to one of three Keycloak tenant models.
Comparing realms, organizations and clients on isolation and effort
This table compares three ways to hold tenant data in Keycloak: one realm per tenant, organizations inside one realm, and tenant context carried on clients and groups. Read each row as a question to answer for your own tenant count, admin model and identity requirements, then use the final row to weigh how hard a later change would be.
| Criterion | Realm per tenant | Organizations in one realm | Clients and groups as tenant context |
|---|---|---|---|
| Isolation boundary | Strongest. Users, keys, clients, identity providers and themes are separate per realm. | Shared realm. Membership and domains are scoped per organization, but users and realm settings are shared. | Weakest. Isolation depends on the application enforcing tenant checks on every request and token. |
| Admin effort per tenant | Highest. Each realm needs its own configuration, and onboarding is usually automated through the Admin REST API. | Lower. Organizations, their domains and member organizations are managed inside the realm. | Lowest at creation, but tenant rules pile up in client mappers and application code over time. |
| Performance at scale | Each realm adds cache and admin console load. Large realm counts need sizing and testing before go-live. | One realm holds all users, so user and organization counts drive cache and query load. Test with your own data volumes. | Shares the realm load of one realm, with extra work in token size as group and role counts grow. |
| Per-tenant identity providers | Native. Each realm holds its own identity provider set and login flows. | Linked to organizations so members route to their own provider. Confirm the routing behavior for your version. | Hard. Providers are realm-wide, so per-tenant logic must sit in custom flows or the application. |
| Per-tenant branding and login flows | Native per realm, with theme and flow settings per realm. | Possible with organization-aware templates. Confirm the supported approach in your release. | Limited to per-client theme or flow settings, with no tenant-level control. |
| Delegated tenant administration | Possible with realm-level admin roles, but each tenant admin needs a realm-scoped role. | Suited to organization-level management, including managing member organizations and their domains. | Requires custom admin tooling, since Keycloak has no per-tenant admin scope on groups alone. |
| Fit | Few tenants with strict isolation, separate regulators or separate branding and identity requirements. | Many business customers that share one user base and need domain routing and organization-level admins. | Simple internal tenancy where the application already owns authorization and tenant data. |
| Cost of migrating later | Moving users and providers between realms is manual work with identity risk. Plan the realm naming and export early. | Adding organizations to an existing realm is less disruptive, but moving users out of a shared realm is costly. | Moving to organizations or realms means reworking token mappers, application checks and stored group logic. |
What isolation a realm gives you that an organization does not
In Keycloak, a realm is the boundary for users, keys, sessions, clients and administration, while an organization is a grouping of members and domains inside one realm. The cards below walk through each kind of separation so you can see which tenant boundaries a realm enforces and which ones your application or admin model must enforce itself. Confirm the exact separation your compliance team expects before you choose a model.
User account separation
Each realm has its own user store, so a user in one realm cannot sign in to another realm's clients by default. Organizations do not create that boundary: members of several organizations share one user table in the same realm, and an organization only tells Keycloak which users belong to which group of domains and identity providers. Check whether your compliance team needs a user store that is physically or logically separate per tenant, because that answer decides whether organizations are enough.
Keycloak docsSigning keys and token issuers
Each realm has its own issuer URL and its own signing keys, so tokens from one realm do not validate against another realm's keys. Within a single realm, every organization's users receive tokens signed by the same keys and issued by the same issuer. Confirm whether your tenants need separate issuers, separate key rotation schedules or separate audiences, and whether your APIs validate the issuer and audience claims for each tenant.
Session and logout scope
Sessions belong to a realm, so single sign-on applies across every client in that realm. Ending a session or running a global logout reaches all clients in the realm, which can affect tenants you did not intend to touch. Organizations do not split sessions, so a user who belongs to two organizations has one session. Plan logout and session lifetime settings per realm, and test what a forced logout does for a tenant in a shared realm.
Administrative roles and delegation
A realm has its own administrators and its own admin console scope, so a realm admin for one tenant can be kept separate from another tenant's admins. In a shared realm, delegation depends on fine-grained admin permissions and organization-level management, which limit what a customer admin can change but leave the realm itself shared. Ask who will hold realm-level roles, how many people can reach the master realm, and whether each tenant admin needs to see only their own users.
Audit trail boundaries
Admin events and user events are recorded per realm, so a realm gives you a log stream that contains only one tenant's activity. In a shared realm, events for all organizations land in one stream, and you need to filter by user, organization or client to produce a per-tenant record. Confirm that your audit logs, retention and export process can answer a tenant-specific question without exposing other tenants' events.
Clients and per-tenant configuration
Clients, identity providers, authentication flows and themes are configured per realm, so changing one tenant's login flow in a realm-per-tenant model does not touch other tenants. In a shared realm, these settings apply to everyone unless you attach them to a client or organization. Make a list of settings that must differ per tenant, then check which ones your chosen model can vary without creating a separate realm.
Which model fits which tenant situation
When you serve a small number of large customers, each with its own Entra ID, Okta or SAML identity provider, the strongest starting point is usually organizations inside one realm. Each customer becomes an organization with its own linked identity provider, domains and members, while the realm keeps one set of clients, roles and login pages. The trade-off is that per-customer settings are shared at the realm level, so anything that must differ strongly between customers needs to be checked against what organizations can hold.
- Identity provider per customer: organizations let you link an external provider and route users by email domain, which covers most enterprise sign-in cases.
- Shared clients: one application registration serves every customer, which keeps client administration in one place.
- Per-customer policy limits: authentication flows and realm-wide settings apply to all organizations, so confirm that each customer's policy needs fit.
- Small admin footprint: you manage one realm rather than one realm per customer.
- Migration path: if a customer later needs separate keys or a full realm, the data model can be moved, but plan that move before customer data grows.
Before you commit, confirm with the current Organizations documentation in the Keycloak server administration guide which settings are scoped to an organization and which are realm-wide.
When you serve many small customers who sign in with local accounts or one shared identity provider, a single realm with tenant data held on groups, attributes or organization membership is often the simplest model. You avoid running hundreds of realms, and onboarding becomes a data operation rather than a configuration change. The trade-off is that isolation depends on your application and token design, not on realm boundaries, so tenant context must be enforced where the data is read.
- Shared identity provider: one upstream provider or the local user store serves all tenants, which suits self-service sign-up models.
- Tenant context in tokens: an organization or group claim carries the tenant, and the application must check it on every request.
- Lower operating load: one realm means fewer admin contexts, fewer caches to size and a smaller upgrade surface.
- Isolation responsibility: a mistake in claim mapping or authorization becomes a cross-tenant exposure, so test it explicitly.
- Scale limits: very large numbers of organizations and memberships need load testing in your own environment before you rely on them.
Before adopting this model, ask your team to demonstrate, with a test tenant, that a user from one tenant cannot read another tenant's data through any API path.
When the tenants are divisions, subsidiaries or departments of one company, the usual answer is one realm for the whole company, with business units modeled as groups, roles or organizations depending on how their identity sources differ. Staff keep one identity and one set of applications, and central security controls such as MFA policy and session rules stay uniform. The trade-off is that business units rarely need strong isolation from each other, so the model should favor shared administration and consistent policy over separation.
- One workforce identity: a single realm avoids duplicate accounts for staff who move between units.
- Uniform policy: central MFA, password and session rules apply everywhere without per-unit drift.
- Delegated administration: unit administrators can manage their own groups or members through scoped roles, which the fine-grained admin permissions documentation covers.
- Different directories: units with their own Active Directory forests can be connected through user federation, with attribute mapping agreed in advance.
- Limited isolation: if a unit later needs separate branding, keys or legal separation, that requirement should trigger a re-review of the model.
Confirm with the business unit owners which data and admin boundaries they actually require, since that answer decides whether groups or organizations fit better.
When a tenant needs its own signing keys, its own token issuer or administrators who must never see other tenants, the answer usually moves toward a realm per tenant. A realm has its own keys, its own clients, its own users and its own admin scope, so these requirements are met by configuration instead of by application logic. The trade-off is operational: every realm adds configuration, cache and upgrade work, and automation becomes necessary rather than optional.
- Separate signing keys: each realm has its own keys, so a key compromise or rotation for one tenant does not affect the others.
- Separate issuers: each tenant gets its own issuer URL and discovery document, which some customers require for their own audit trails.
- Strong admin separation: realm-scoped administrators cannot see other realms by default, which supports regulated delegation models.
- Recurring operations cost: realm creation, theme variants and client registration multiply, so plan automation and a testing pipeline before the first tenant.
- Scale planning: large realm counts affect token size, caching and console performance, so review the sibling guidance on running many realms before you commit.
Ask your compliance and security teams to write down which of these requirements are contractual, since a requirement that is only a preference usually does not justify the operating cost.
How tenant count affects realms, tokens and admin performance
The tenant count decides more about your Keycloak design than any single feature, because each realm-per-tenant model multiplies the configuration you must keep consistent. With a realm per tenant, every new customer adds its own clients, role definitions, authentication flows, identity provider links, themes and admin accounts, so administrative work grows with the number of realms rather than with the number of changes. Configuration drift is the usual failure: one realm receives a fix that the others never get. Before you commit, load test the realm count you expect within 12 to 24 months, and script realm creation and updates from the start. Confirm the practical limits for your version with the Keycloak project and in your own environment, because they depend on hardware, database sizing, and how many realms are active at once.
Caching and startup cost also scale with realm count. Keycloak keeps realm, client and user data in Infinispan caches, so many realms compete for the same memory, and each cluster node warms its own copies. Measure cache hit rates and heap use with metrics enabled (see the Keycloak observability guide) while adding realms, and rerun the same test after each Keycloak upgrade. Startup time and admin console responsiveness should be measured with the realm count you plan to run, not a sample of five realms. Ask your team and any partner to show the test results alongside the quote.
Token size is where organization membership and group or role claims matter most. In an organizations design, a user who belongs to many organizations can produce a token that carries a long list of organization data, and group or role mappers add more entries for each membership. Large tokens increase header size at the proxy and gateway, slow down every request, and can break applications that expect small cookies. Decide early which claims each client really needs, use scoped claim mappers rather than full dumps, and test a user with the highest membership count you expect. The detailed claim design sits in the organization claims topic, but the sizing test belongs here, in your own load plan.
How to choose and prepare a tenant model in Keycloak
This sequence takes a team from tenant requirements to a tested prototype and a documented migration path, so the realm, organization, or client model is chosen on evidence rather than habit. Each step ends with an output or check that the next step depends on.
Write down tenant requirements
Product, security, and operations owners list what a tenant must have: its own sign-in method, its own users and admins, branding, token contents, data separation, and expected tenant count. Include which tenants will bring their own identity provider and which will not. The output is a short requirements sheet signed off by the owners who will live with the result. You know it is done when each requirement can be answered yes or no in a test, and the owners have confirmed the expected tenant count range in writing.
Decide the isolation boundary
The team maps each requirement to one of three boundaries: a separate realm per tenant, an organization inside a shared realm, or tenant data carried on clients and groups in one realm. Isolation strength, admin effort, per-tenant settings, and token size are compared against the requirements sheet. Security and platform leads record the decision and the reason for rejecting the other two options. Check the result by asking whether any requirement from step one would need a workaround; if so, revisit the boundary before continuing.
Define realm and organization naming and domains
Platform engineers set naming rules for realms, organizations, clients, identity provider aliases, and email domains, along with the hostnames used for each tenant's login. Names should be stable, lowercase, and free of customer details that may change. Domain ownership rules say who verifies a tenant's domain and how conflicts are resolved. The output is a naming standard in version control. Check it by generating five sample tenant names from the standard and confirming that none collide and that each maps to exactly one domain.
Prototype on a non-production instance
Engineers deploy a non-production Keycloak using the Keycloak Operator, installed through Operator Lifecycle Manager, or the documented container or manual path, and recreate the chosen model with two or three illustrative tenants. Use the default dev-file database only for a quick look; use a supported production database if the prototype will be reused. Set operator updates to manual approval. The check is a running instance where the prototype tenants can be created and removed without manual database edits.
Test login and admin delegation per tenant
Testers sign in as users from each illustrative tenant, confirm that sessions and tokens carry only that tenant's context, and try cross-tenant access with a user from another tenant. They also confirm that a tenant admin can manage only their own users and that a platform admin's access is logged. Record the results against the requirements sheet. The check is a test log where every cross-tenant attempt is denied and every intended admin action succeeds, with any gap assigned to an owner.
Measure token size and admin workload
Engineers examine the tokens and admin screens produced by the prototype with many memberships and many clients, then compare the results to the isolation boundary chosen in step two. They record how many steps creating one tenant takes by hand and which steps would need automation. The check is a short table of observed token contents and manual steps per tenant, reviewed by the team before any tenant onboarding is scripted.
Document the migration path
The team writes down how tenants move if the chosen model stops fitting: for example, moving tenants from a realm per tenant to organizations, or from one shared realm to separate realms. The document covers user identifiers, identity provider links, client secrets, sessions, and a rollback plan, and names the sources to confirm with the Keycloak release in use. The check is a reviewed migration runbook that a second engineer can follow on the prototype without help.
Security and operational risks of the chosen tenant model
Whichever tenant model you pick, the same few failure points decide whether one customer can see or change another's identity data. The cards below cover where tenant boundaries leak, how admin rights escalate, and what production and observability settings you need to verify before and after launch.
Tenant data leakage through shared clients
When tenants share one realm, one client and shared roles, isolation depends on token claims and application checks rather than on Keycloak itself. Review which client scopes, protocol mappers and role mappings reach each tenant's tokens, and confirm that your application rejects tokens whose organization or group does not match the requested tenant. Test this with two tenant accounts before go-live.
Admin escalation across realms
Realm admin rights are scoped to a single realm, so a realm-per-tenant model contains a compromised tenant admin, but only if no account holds admin roles in more than one realm. Audit master realm admins and any service account with cross-realm permissions, since these can reach every tenant at once. Limit the number of accounts with master realm access to a short, named list.
Signing key scope per tenant
Realm keys sign tokens for every client in that realm, so a realm-per-tenant design gives each tenant its own signing keys, while a shared realm means every organization trusts the same keys. Check which key providers are active in each realm, how rotation is scheduled, and how a leaked key would be revoked for one tenant without disrupting others. Record the rotation procedure before you need it.
Audit trail for tenant admin actions
Delegated administrators change users, identity providers and memberships, and those changes must be attributable to a person and a tenant. Confirm that admin event logging is enabled for each realm you run, that events are exported to a store your security team can query, and that retention matches your policy. Also confirm login failure records, which the 26.8 upgrade notes say are persisted to the database by default.
Admin hostname and TLS separation
The production guide calls for TLS on all communication, a reverse proxy with path restrictions, and exposing the admin console and Administration REST API on a different hostname or context path from public frontend URLs. Tenant onboarding automation calls these endpoints heavily, so it should reach them only through the private hostname. Verify that public traffic cannot reach admin paths, and that automation credentials are scoped to the realms they need.
Production guideWatching the model under load
Keycloak exposes Prometheus-format metrics at /metrics on its management interface when started with --metrics-enabled=true, with optional HTTP request and cache histograms. Track request latency and cache behavior per realm as tenant count grows, so a single large tenant's login spike or a cache sized for too few realms shows up before users notice. Keep the management interface off the public network.
Metrics guideMoving tenants between models later without rebuilding everything
Can I move from realm-per-tenant to organizations in Keycloak later?
Yes, but it is a migration project, not a configuration toggle. Keycloak organizations live inside a single realm, so each tenant realm has to be mapped into an organization in a target realm, with its users, groups, clients and identity providers carried across. The effort depends on how much tenant-specific configuration each realm holds, how many users it has, and how many applications were built around realm names, issuers or realm-level roles. Ask a partner to inventory those items for each realm before quoting.
What drives the effort of merging several realms into one?
Merging is harder than splitting because the realms were kept apart on purpose, often with different password policies, token lifetimes, client secrets and login themes. The main drivers are name collisions for usernames and emails, conflicting role and group names, duplicated clients with different redirect URIs, and tokens whose issuer URL changes. Each application that validates tokens against a realm issuer needs a planned cutover, so the number of connected applications is usually the largest factor.
How do I keep user identifiers stable when tenants move?
Plan the subject identifier before any user moves. Keycloak issues the sub claim from the internal user ID, and that ID changes when a user is recreated in another realm. Applications that store the sub value will see returning users as new accounts unless you map old identifiers to new ones or keep a stable external attribute, such as a verified email or an identifier from the upstream provider, as the link key. Confirm with each application owner which claim it stores before any user is migrated.
Which upstream identity provider links need rework during a move?
Brokered identity providers are configured per realm and reference redirect URIs that include the realm name. When a tenant moves, its upstream provider, such as Microsoft Entra ID or an Okta SAML app, must be updated with the new callback address, and any first-broker-login flow must be reviewed so that existing linked accounts are matched rather than duplicated. Ask the partner to list every identity provider, its callback configuration and its account linking rules, then plan a test sign-in for each tenant.
What testing does a tenant model migration need?
Testing should prove that every user keeps access, that no user can see another tenant's data, and that tokens still validate in each application. Useful checks include a sign-in matrix covering each tenant, protocol and login method, token claim comparisons before and after the move, role and group access tests, logout and session behavior, and a rollback test. Keycloak also changes behavior between releases, so run the migration on the same version you plan to run in production, and check the upgrade notes for the version in use.
What upgrade work should be scheduled alongside the migration?
Plan the tenant move and any Keycloak version upgrade as separate changes, so a failure can be traced to one cause. Read the upgrade notes for every minor release between your current and target versions, because the project makes breaking changes opt-in within minor releases but still documents behavior changes that matter for tenant configuration. The database schema also migrates at startup by default, so decide whether to apply schema changes manually for a large deployment before the tenant migration begins.
What should I ask a partner to include in a migration quote?
Ask for a written scope that names the source and target model, the number of realms, users, clients, identity providers and connected applications, and the rule for user identifier mapping. Ask who performs the inventory, who owns the application cutovers, which environments are used for rehearsal, how rollback works, and what evidence is delivered at the end, such as the sign-in test matrix and the claim comparison. Confirm whether ongoing support is included or offered as a separate retainer, since DeployOpen engagements are fixed-scope and agreed in writing before work starts.
Limits to confirm before you commit to a model
A tenant model is hard to reverse once customers, tokens and admin processes depend on it. The items below are the limits that decide whether realms, organizations or clients-and-groups fit your scale, your compliance needs and your Keycloak release. Confirm each one in your own environment before you write the design.
Organizations feature in your version
The Organizations feature is documented in the Keycloak server administration guide, which covers member organizations and their domains. Confirm that the release you plan to run includes the Organizations capabilities you need, such as domain routing and organization-level identity providers, and that your distribution, whether upstream Keycloak or the Red Hat build, exposes them the same way. The current release is 26.8.1, but your standard may pin an older line, so check the version your platform team has approved.
Keycloak docsDatabase and high availability architecture
Your tenant model sets how much data and cache pressure one cluster carries, so the database and clustering design must be confirmed early. Check that your chosen database is on the supported list and that you can provide synchronous replication, which both supported high availability designs require. Also confirm whether the deprecated multi-cluster v1 design appears in any existing plan, since the upgrade notes recommend moving to the stateless feature.
High availability overviewIdentity provider limits per tenant
Ask how many identity providers each tenant model can hold and how your team will manage them. In a realm per tenant model, each realm carries its own providers, mappers and login settings, so provider count multiplies with realm count. In a single realm with organizations, providers are linked to organizations, and domain routing decides which provider a user sees. Test the exact number of providers you expect for your largest tenant and confirm the behavior with a pilot before you commit.
Token size for users in many organizations
A user who belongs to many organizations can receive a large token if organization claims and group or role claims are added for each membership. Large tokens can fail at proxies, load balancers or browsers, and they increase the data each request carries. Define the claim set your applications need, decide whether tenant context comes from a claim or from an application lookup, and test a user with the maximum membership count you expect. Confirm header size limits in your reverse proxy and gateway.
Separate realms required by compliance
Some regulators, customer contracts or internal policies may require that each tenant's accounts, signing keys, session policies or audit records are kept apart. If your control set or customer contracts specify separation at the realm level, a single realm with organizations may not meet the requirement, even though it works technically. Ask your compliance lead to name the exact requirement and the evidence an assessor will expect, then map it to the model before you plan admin delegation. Your own auditor or compliance adviser makes the final call.
Questions buyers ask about Keycloak tenant design
What drives the cost and effort of a Keycloak tenant design?
The biggest drivers are how many tenants you expect, how much each tenant differs from the others, and how many external identity providers must be connected. A design that uses one realm with organizations usually involves less per-tenant setup than a realm per tenant, while a design where every customer brings its own identity provider adds integration and testing work for each provider. Cost also depends on how many client applications read tenant context, how delegated administration is scoped, and whether you need custom themes. Ask any quote to break these items out separately, and to state which parts are one-time design work and which parts recur as new tenants are onboarded.
How long does a Keycloak tenant model prototype take to plan?
The planning time depends on the number of tenant types, the identity providers involved and the applications that must consume tenant claims. A prototype usually needs a defined test matrix: two or three sample tenants, one federated identity provider, one application, and an admin role for each tenant. No duration is fixed here, so ask any provider to state the work in a written scope with named deliverables and a timeline agreed before work starts. Most engagements are fixed-scope, which makes the planning output a useful basis for comparing options.
What does the customer's team need to provide for the design work?
The design work needs decisions and access more than it needs code. Your team should supply a list of current and expected tenants, their sign-in requirements, the identity providers each customer uses, and the applications that will read tenant information. Security and compliance staff should state their requirements for isolation, audit logging and admin separation early, because these decide between a realm per tenant and organizations. You will also need a test environment that matches your production hosting, with TLS and a reverse proxy in place, since the Keycloak production guide expects both.
Can an internal team design and run Keycloak tenants without outside help?
Yes, an internal team can do this if it has engineers who understand OpenID Connect, SAML, realm configuration and the Keycloak admin API, and if it can staff the work over the long term. The harder parts are usually not the first configuration but the ongoing decisions: how to automate onboarding, how to scope delegated admins, and how to test upgrades. Keycloak publishes a fixed release cadence of four minor releases a year, so the team must plan for regular upgrades. An outside partner can carry part of the design, testing or runbook work, while your team keeps ownership of the decisions.
What changes when the number of tenants grows into the hundreds?
A realm per tenant works well at small counts, but the operating cost rises as realms multiply. Each realm has its own configuration, admin roles, clients and caches, so admin role composites, token size, cache sizing and startup or admin console responsiveness deserve testing at your expected count. Organizations keep many tenants in one realm, which reduces per-realm overhead but puts more load on that realm and makes tenant-scoped permissions more important. Ask any design to state the expected tenant count at year one and at the planned peak, and to test against that number instead of a small sample.
What should the design decision cost you if you need to move between models later?
Moving between a realm per tenant and organizations is a migration, not a setting change, so it has a cost that should be estimated before you commit. The work includes moving users, identity provider links, client mappers, token claims and admin permissions, and it must be tested with live sign-ins in mind. Plan for this by choosing the model with the expected tenant count and admin model in view, and by keeping onboarding automated so that changes are repeatable. Ask any provider to scope a migration path as a separate item in the quote.
Which Keycloak security and compliance checks should the tenant design include?
The design should show how tenant isolation is enforced in the application and in Keycloak, how admin rights are limited to a single tenant, and how changes to tenant settings are logged. Confirm that admin consoles and the Administration REST API are reachable only on a separate hostname or context path from public frontend URLs, as the Keycloak production guide describes. Compliance teams will also want evidence of access control and audit records. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors issue any audit report or certification.
How DeployOpen scopes and delivers a Keycloak tenant model
DeployOpen starts Keycloak multi-tenancy work by agreeing on the tenant model in writing before any build begins: realms, organizations inside one realm, or tenant data carried on clients and groups. The work then runs in your own infrastructure, with documented configuration, tested tenant isolation and a handover your team can operate.
How we scope
- We confirm how many tenants, business units or customers you expect, and how each one needs to sign in and be administered.
- The written scope names which tenant model applies, which Keycloak version and database are in use, and which upstream identity providers are included.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts, and a quote follows from that scope.
How we build
- We build the chosen model in a non-production environment, including realm or organization structure, client settings and per-tenant identity provider links.
- Tenant isolation is tested with cross-tenant access attempts, token inspection and admin permission checks before anything moves to production.
- Onboarding steps, such as creating a tenant and its first admin, are scripted or automated where the agreed scope requires it.
How we hand over
- You receive documentation of the tenant model, its naming rules, token contents and the reasoning behind the model you chose.
- Runbooks cover tenant creation, offboarding, realm or organization changes and the steps to migrate from one model to another later.
- Your team is walked through the configuration as code, test results and open items, so administration stays in your hands after the engagement.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, which can cover Keycloak minor release upgrades and tenant changes.
- Retainer scope is agreed in writing, so you can confirm response expectations and what is included before you commit.
- Where a tenant model needs revisiting as the customer base grows, we can scope that review as a separate fixed-scope piece of work.

