Tenancy: resource of models belonging to multiple tenants

Hi, In a multi-tenancy setup a user can belong to multiple tenants. Each tenant must be able to edit users belonging to that tenant. How do I scope this in the UserResouce?
4 Replies
Proculair
Proculair7mo ago
Ty that will work
Helge Sverre
Helge Sverre7mo ago
Alternatively you can change protected static ?string $tenantOwnershipRelationshipName = "teams"; On the UserResource
Proculair
Proculair7mo ago
Yeah :D, I ended up doing that