My Saas isn't able to check permissions
# permit-saas
s
My Saas isn't able to check permissions
a
Hi @Saif Ismail, I'm an AI assistant for Permit.io. I'll analyze available sources and get back to you shortly.
* Here are a few things to check when
permit.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:
Copy code
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)
Copy code
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:
Copy code
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 /
To learn more, see the sources I considered: [[1] QuickStart - Add permissions to your Python app](https://docs.permit.io/sdk/python/quickstart_python_sync) [[2] Permit.check()](https://docs.permit.io/how-to/enforce-permissions/check)