Herald
OpenapiUser

Get the current user's permission list

Returns the list of all permission names the current user has, used for frontend menu permission control. **has_all field**: Legacy response field kept for compatibility. The user endpoint no longer expands the full set of realm permission definitions and always returns false.

GET
/api/user/permissions

Returns the list of all permission names the current user has, used for frontend menu permission control.

has_all field: Legacy response field kept for compatibility. The user endpoint no longer expands the full set of realm permission definitions and always returns false.

Response Body

User permissions

application/json
  1. response
has_all*boolean
permissions*array<string>
Example Request
curl -X GET 'https://example.com/api/user/permissions'
Example Response
{
  "has_all": true,
  "permissions": [
    "string"
  ]
}