Multi Tenancy Setup Question

Hi All,

I'm trying to set up multi-tenancy where Business is the Tenant, and each Business can have multiple Teams. Users can belong to multiple Teams, and regular members should only see their team's data. Admins can see all teams and manage the business info.

I'm confused because it feels like both Business and Team could be treated as tenants. Should I make Teams the tenant and manage roles per user? Or should I stick with Business as the tenant and handle the Team's information with custom scopes/observers with roles/permissions inside the team - what I am leaning towards... This way I can have 2 panels. The BusinessPanel and TeamPanel?

Thanks for any guidance!
Solution
Unless there is a need for many users to many businesses, then my first avenue would be to have the Teams as tenant. Then have Teams & Users belonging to Business which can limit the tenant a user can opt for. You can avoid slug\url requirements.

But either way, it won't take long to build a wireframe with multiple solutions and test them out.
Was this page helpful?