Herald
OpenapiUsers

Get user's directly assigned permissions

Returns permissions that were directly assigned to the user (not through roles). These are policies where the subject is the user_id itself. **Note**: This endpoint returns only direct permissions. For effective permissions (including those inherited from roles), use `/effective-permissions`.

GET
/api/users/{userId}/permissions

Returns permissions that were directly assigned to the user (not through roles). These are policies where the subject is the user_id itself.

Note: This endpoint returns only direct permissions. For effective permissions (including those inherited from roles), use /effective-permissions.

Path Parameters

userId*string

User ID

Formatuuid

Response Body

User direct permissions

application/json
  1. response
has_all*boolean
permissions*array<string>
Example Request
curl -X GET 'https://example.com/api/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/permissions'
Example Response
{
  "has_all": true,
  "permissions": [
    "string"
  ]
}