Keycloak multi-tenancy and B2B identity

Serving many customers or business units from one Keycloak: realm and organization design, per-tenant identity providers and branding, onboarding automation and delegated administration.

Running hundreds of realms in Keycloak

What changes when a realm per tenant grows to hundreds: admin role composites and token size, cache sizing, startup and admin console performance, automation for realm creation, and when to switch to organizations.

Automating tenant onboarding in Keycloak

Creating tenants without manual admin work: provisioning organizations, domains, identity providers and first admins through the Admin REST API or Terraform, invitation emails, and offboarding a tenant cleanly.

Per-tenant branding in Keycloak

Showing each customer its own login look: realm themes, per-client login themes, organization-aware templates, a custom theme selector, and the maintenance cost of many theme variants.

Organization claims and groups in Keycloak tokens

Passing tenant context to SaaS applications: the organization claim mapper, organization groups and roles, keeping tokens small for users in many organizations, and enforcing tenant isolation in the application.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.