Saif Ismail
12/15/2025, 4:28 PMAsk Inkeep
12/15/2025, 4:28 PMAsk Inkeep
12/15/2025, 4:28 PMpermit.check() isn't working:
*1. Verify your PDP is running*
Make sure your Policy Decision Point container is up. You can check with docker ps in your terminal. (1)
*2. Confirm SDK initialization*
Ensure you're initializing the Permit client with the correct PDP URL and API key:
permit = Permit(
pdp="<http://localhost:7766>",
token="<your-api-key>",
)
*3. Check your permit.check() call*
The function expects three arguments: user_id, action, and resource. (2)
permitted = await permit.check("<mailto:john@smith.com|john@smith.com>", "create", "document")
(1)
*4. Verify user and role assignment*
The user must exist in Permit and have a role assigned in the relevant tenant. (2)
*5. For multi-tenant apps*
Pass the tenant as part of the resource object:
const permitted = await permit.check("<mailto:john@permit.io|john@permit.io>", "create", {
type: "document",
tenant: "companyA",
}) ;
*
To help our engineers investigate further, could you share:
1. Which **Workspace / Project /Ask Inkeep
12/15/2025, 4:29 PM