Tamara
12/10/2025, 1:37 AMAsk Inkeep
12/10/2025, 1:37 AMpermit support automation2
12/10/2025, 1:37 AMAsk Inkeep
12/10/2025, 1:37 AMpermit.check() for a resource instance that belongs to a specific tenant, you should pass the tenant as part of the resource object. (1) , (2) , (3)
The tenant passed in needs to be either the *tenant id* or the *tenant key*. (1)
To indicate a resource belongs to a tenant, provide the tenant key (or id) as part of the resource object:
const permitted = await permit.check(userKey, "create", {
type: "document", // The resource name
tenant: tenantKey, // The tenant key
}) ;
(3)
Tenants act as *silos of resources and users* — only users within a tenant can act on resources within that tenant. Tenants are isolated from one another.
I don't have explicit documentation on what happens if you omit the tenant when checking a resource instance that belongs to a specific tenant (Tenant X) . The sources don't specify whether it returns false, throws an error, or falls back to a default tenant in that scenario.
Check out these potentially useful sources:
• Multi-Tenant Authorization
• Permit.check()
• Running a demo
Would you like me to provide a general answer based on my knowledge, or would you prefer to test this behavior directly?Ask Inkeep
12/10/2025, 1:37 AMTamara
12/10/2025, 1:53 AMAsk Inkeep
12/10/2025, 1:55 AMAsk Inkeep
12/10/2025, 1:56 AMpermit.check() call both with and without the tenant specified and compare the results:
*With tenant specified:*
const permitted = await permit.check(userKey, "create", {
type: "document",
tenant: tenantKey,
}) ;
(1) , (2)
*Without tenant specified:*
const permitted = await permit.check("<mailto:john@permit.io|john@permit.io>", "create", "document") ;
(1)
This will help you observe whether omitting the tenant returns false, throws an error, or has other behavior.
To help our engineers investigate if you encounter unexpected results, could you share:
1. Which Workspace / Project / Env you are using
2. What calls you are performing (as SDK code or CURL)
3. Which PDP version you are running
4. Relevant logs from your PDP
This information will help us clarify the default tenant behavior for your specific setup.Ask Inkeep
12/10/2025, 1:56 AMTamara
12/10/2025, 8:50 AMAlon Boshi
12/10/2025, 8:57 AMpermit.check both with and without specifying the tenant to see the exact behavior in your setup.