# Configure Multi tenant architecture

**URL:** <https://community.auth0.com/t/configure-multi-tenant-architecture/191760>\
**Category:** Get Help\
**Tags:** user-password-management, user-management\
**Created:** [September 11, 2025, 6:09am UTC](https://community.auth0.com/t/configure-multi-tenant-architecture/191760 "2025-09-11T06:09:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![datamatica.in](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/datamatica.in/32/12778_2.png) [@datamatica.in](https://community.auth0.com/u/datamatica.in)\
**Post date:** [September 11, 2025, 6:09am UTC](https://community.auth0.com/t/configure-multi-tenant-architecture/191760/1 "2025-09-11T06:09:42Z")

</div>

Hi we are planning to implement a multi tenant architecture for our web app hosted in AKS. We are already using Auth0 as a IdP, now we want more granularity for user management. The core idea is to implement an architecture so that users from different organizations can login to our web app so that they can access the resources that are meant to them using the same web app and its APIs. These organizations will have different storages and Databases. We will have a single URL where the users should login, I’m not sure about about how the organization will be chosen from there. Overall can anyone please give me a walkthrough of the entire process or an example article would be fine.

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [September 11, 2025, 3:57pm UTC](https://community.auth0.com/t/configure-multi-tenant-architecture/191760/3 "2025-09-11T15:57:19Z")

</div>

Hi @datamatica.in,

Welcome back to the Auth0 Community!

I can provide a step-by-step walkthrough for achieving this with Auth0.

1. Create Database Connections

2. Create Organizations and link each organization to its respective database

3. Set up your Auth0 application

If you have any other questions, feel free to reach out.

Have a good one,  
Vlad

---

<div class="post-metadata">

**Author:** ![datamatica.in](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/datamatica.in/32/12778_2.png) [@datamatica.in](https://community.auth0.com/u/datamatica.in)\
**Post date:** [September 12, 2025, 5:40am UTC](https://community.auth0.com/t/configure-multi-tenant-architecture/191760/4 "2025-09-12T05:40:26Z")

</div>

Thanks @vlad.murarasu for the reply. But I think you have misunderstood my query. My backend will handle the connections, storage accounts etc. Suppose I created 2 organizations, and added users to it, also I have db1, storage 1 for org 1 and db2, storage 2 for org 2. When a user from org 1 login, can we pass a header or something to include the org1 and auth0 will know that user from org 1 has logged in and respond with a token with the org claim. And my backend will extract that claim and process it accordingly so that org 1 user gets served only the content from the db1 and storage 1. Is it possible, if so do I want a paid plan and what are steps to be initialized from auth0.  
Thanks

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [September 12, 2025, 6:32pm UTC](https://community.auth0.com/t/configure-multi-tenant-architecture/191760/5 "2025-09-12T18:32:32Z")

</div>

Hi @datamatica.in,

Yes, this is absolutely possible and is the recommended way to handle multi-tenancy with Auth0. When a user authenticates through an Organization, Auth0 automatically adds an `org_id` claim to the Access Token and ID Token. This `org_id` is the secure and reliable identifier your backend can use to retrieve the correct resources for that tenant.

Here are the steps to achieve the architecture you’ve described:

1. **Use Auth0 Organizations** : This is the foundational feature for your multi-tenant application.

2. **Receive the Organization Claim** : When a user logs in as part of an organization, the issued Access Token will contain an `org_id` claim by default.

3. **Add Custom Claims with Actions (Optional)**: If you want to pass more information than just the `org_id`, such as the database name or storage tier, you can store this in the organization’s metadata and use an **Auth0 Action** to add it to the token.

4. **Pricing Plan** : To answer your other question, you can create up to 5 Organizations using the free plan. You can check all the benefits over at [https://auth0.com/pricing](https://auth0.com/pricing).

Have a good one,  
Vlad

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [September 26, 2025, 6:33pm UTC](https://community.auth0.com/t/configure-multi-tenant-architecture/191760/6 "2025-09-26T18:33:25Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
