# Multi-tenancy using one realm and multiple clients

**URL:** <https://forum.keycloak.org/t/multi-tenancy-using-one-realm-and-multiple-clients/26364>\
**Category:** Getting advice\
**Tags:** authentication, oidc\
**Created:** [June 5, 2024, 8:00am UTC](https://forum.keycloak.org/t/multi-tenancy-using-one-realm-and-multiple-clients/26364 "2024-06-05T08:00:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![YoussefBennour](https://avatars.discourse-cdn.com/v4/letter/y/977dab/32.png) [@YoussefBennour](https://forum.keycloak.org/u/YoussefBennour)\
**Post date:** [June 5, 2024, 8:00am UTC](https://forum.keycloak.org/t/multi-tenancy-using-one-realm-and-multiple-clients/26364/1 "2024-06-05T08:00:21Z")

</div>

Hey, I have a requirement for building a cross-user multi-tenant application (i.e. users can be shared across tenants if needed).  
Since the same user can be shard across more than 1 tenant, implementing multi-tenancy using 1 realm per tenant is not an option.  
I was curious about whether it’s possible to map specific users to specific clients, restricting access to client they’re not mapped to.

---

<div class="post-metadata">

**Author:** ![embesozzi](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/embesozzi/32/12390_2.png) [@embesozzi](https://forum.keycloak.org/u/embesozzi)\
**Post date:** [June 10, 2024, 1:11pm UTC](https://forum.keycloak.org/t/multi-tenancy-using-one-realm-and-multiple-clients/26364/2 "2024-06-10T13:11:27Z")

</div>

There are new features related to multi-tenancy [1] in version 25. It’s still in preview, and there are many points on the roadmap to address [2], but you can review it and check if it helps you.

[1] [Server Administration Guide](https://www.keycloak.org/docs/25.0.0/server_admin/#_managing_organizations_)  
[2] [Keycloak Organizations · Issue #30180 · keycloak/keycloak · GitHub](https://github.com/keycloak/keycloak/issues/30180)
