Streamline Your Authorization Workflow with Auth0 FGA

Limited early access is available for production usage; learn how you can apply!
Read more…

:writing_hand:t2: Brought to you by @andres.aguiar

1 Like

What are your thoughts, folks? Got any questions regarding the article? Share them in the comments!

1 Like

Hello @robertino.calcaterra

I want to apply this with multi tenant, how to do so ?

Can I consider each store as a tenant ?

HI Firas,

I think we discussed this in Discord too, but the way we recommend handling multi tenancy is to model that in the model itself, e.g.

type user
type organization
relations
define member : [user]
type resource
relations
define organization : [organization]
define can_access: member from organization

In that way, members can only access resources from their own organization.