# How to setup auth0 users that can have 1 to many companies

**URL:** <https://community.auth0.com/t/how-to-setup-auth0-users-that-can-have-1-to-many-companies/103030>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [March 21, 2023, 9:26pm UTC](https://community.auth0.com/t/how-to-setup-auth0-users-that-can-have-1-to-many-companies/103030 "2023-03-21T21:26:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![llai](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/llai/32/43978_2.png) [@llai](https://community.auth0.com/u/llai)\
**Post date:** [March 21, 2023, 9:26pm UTC](https://community.auth0.com/t/how-to-setup-auth0-users-that-can-have-1-to-many-companies/103030/1 "2023-03-21T21:26:08Z")

</div>

Hello,

My client has 2 applications (react SPAs + node apis). For the second application we have used auth0 to store our users. Now I am needing to migrate the first applications users to auth0, which is no problem.

My issue is the users can be associated to one or many companies. I’m trying to figure out the best way to handle this. My initial solutions are

1. use auth0 organizations - this seemed overkill to me
2. use authorization extension and groups - this didn’t seem like the right tool to me. groups seemed more like groups of users under a single company.
3. have a separate DB that housed the companies and which companies were tied to which users.
4. tying users to companies through user metadata - this sort of made sense to me, but I’m unsure how I would store company metadata like company name.

I guess I am kind of leaning towards #3 with a separate DB and probably a separate API to manage that DB that can be used by both applications.

Is there an approach or auth0 tool I am missing? Or is this a common approach for this situation.

Thank you very much

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [March 21, 2023, 11:33pm UTC](https://community.auth0.com/t/how-to-setup-auth0-users-that-can-have-1-to-many-companies/103030/3 "2023-03-21T23:33:21Z")

</div>

Hey there @llai !

My initial response to a set up like this is to use Organizations - If you haven’t already, I definitely recommend taking a look at our Architecture Scenarios documentation, and in particular Multiple Organization Architecture:

> **[Multiple Organization Architecture](https://auth0.com/docs/get-started/architecture-scenarios/multiple-organization-architecture)**
>
> An integration guide to multi-tenant architectures that must accommodate application instances for multiple Auth0 Organizations.

Hope this helps!

---

<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:** [April 4, 2023, 11:33pm UTC](https://community.auth0.com/t/how-to-setup-auth0-users-that-can-have-1-to-many-companies/103030/4 "2023-04-04T23:33:42Z")

</div>

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