Pratham Khodwe
08/06/2025, 9:44 AMAsk Inkeep
08/06/2025, 9:44 AMAsk Inkeep
08/06/2025, 9:44 AMconst permitted = await permit.check(userKey, "create", {
type: "document", // The resource name
tenant: tenantKey, // The tenant key
}) ;
Users can belong to multiple tenants with different roles in each (4) . For example, a user might be an admin in one tenant while only an editor in another .
Key Benefits
• *Tenant Isolation*: Each tenant operates in an isolated environment with its own access rules
• *Dynamic Role Assignment*: Roles are scoped per tenant, avoiding role explosion
• *Resource Scoping*: Resources are linked to specific tenants for proper data boundaries
You can manage tenants through the Tenants API and assign users to tenants via the Role-Assignments API (1) .Ask Inkeep
08/06/2025, 9:44 AMOmer Zuarets
08/06/2025, 10:17 AMPratham Khodwe
08/06/2025, 11:03 AMOmer Zuarets
08/06/2025, 11:04 AM