Hassan Munir
03/16/2026, 3:51 PMdavid
03/16/2026, 3:56 PMgetUserPermissions can fetch relationship-based permissions, but you need to enable ABAC (Attribute-Based Access Control) support explicitly in your request.
heres a cURL example:
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
}
}'
Please see the following docs for a more comprehensive explanation about enabling ABAC in user permissions:
https://docs.permit.io/how-to/enforce-permissions/user-permissions/