Taofiq Aiyelabegan
08/18/2025, 6:50 AM{
"detail": "Not Found"
}Ask Inkeep
08/18/2025, 6:50 AMAsk Inkeep
08/18/2025, 6:50 AM<http://localhost:7766/user-permissions> (assuming your PDP is running on localhost:7766) (1) .
Here's the correct format for the API call:
curl --location '<http://localhost:7766/user-permissions>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api key>' \
--data '{
"user": {
"key": "eddie"
},
"resource_types": [
"document",
"__tenant"
],
"context": {
"enable_abac_user_permissions": true
}
}'
The "Not Found" error typically indicates either:
⢠The endpoint URL is incorrect
⢠The PDP is not running or not accessible at the specified address
⢠The API path is wrong
To help our engineers investigate this issue further, please provide:
1. Which Workspace / Project / Env you are using
2. The exact call you're performing (as SDK code or CURL from Postman)
3. Which PDP version you are running
4. Any relevant logs from your PDPAsk Inkeep
08/18/2025, 6:50 AMTaofiq Aiyelabegan
08/18/2025, 6:50 AMcurl --location '<https://cloudpdp.api.permit.io/user-permissions>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer permit_key_xxxxxxxxxx' \
--data '{
"user": {
"key": "ehowe"
},
"resource_types": [
"document",
"__tenant"
],
"context": {
"enable_abac_user_permissions": true
}
}'Ask Inkeep
08/18/2025, 6:51 AMAsk Inkeep
08/18/2025, 6:51 AM<https://api.permit.io/v2/> for API calls (1) . If you're using the EU region, it would be <https://api.eu.permit.io> .
The /user-permissions endpoint you're trying to use appears to be a PDP-specific endpoint that would typically be called on your local or container PDP instance, not directly on the Cloud PDP API.
To help debug this issue, could you please provide:
1. Which Workspace / Project / Env you are using
2. The exact calls you're performing (you've shared the CURL - thank you!)
3. Which PDP version you are running (Cloud PDP, Container, or local?)
4. Any relevant logs from your PDP if you have access to them
This information will help our engineers investigate why you're getting the "Not Found" error.Ask Inkeep
08/18/2025, 6:51 AMOmer Zuarets
08/18/2025, 6:52 AMTaofiq Aiyelabegan
08/18/2025, 6:52 AMOmer Zuarets
08/18/2025, 6:53 AMTaofiq Aiyelabegan
08/18/2025, 6:53 AMTaofiq Aiyelabegan
08/18/2025, 6:57 AMGet Authorized Users cant find it yetAsk Inkeep
08/18/2025, 6:57 AMAsk Inkeep
08/18/2025, 6:57 AM/authorized_users endpoint (1) (2) .
Here's how to call it using cURL:
curl --location '<http://localhost:7766/authorized_users>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api key>' \
--data '{
"action": "read",
"resource": {
"type": "Document",
"tenant":"default",
"attributes": {
"cost":500,
"create_at": 2024
},
"context": {
"enable_abac_authorized_users": true
}
}
}'
(1)
Or if you're using Python:
from permit import AuthorizedUsersResult
authorized_users: AuthorizedUsersResult = permit.authorized_users(
"read", "repo",
)
This function returns a list of users who have access to perform a specific action on a resource, including the user's role assignments that granted the access . Note that this feature is available starting from PDP version 0.4.0 and is currently in EAP stage .Ask Inkeep
08/18/2025, 6:58 AMTaofiq Aiyelabegan
08/18/2025, 6:58 AMOmer Zuarets
08/18/2025, 6:58 AM