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

application/json

application/json

application/json

curl -X GET "https://example.com/api/user/permissions"
{  "has_all": true,  "permissions": [    "string"  ]}
{  "code": "string",  "details": null,  "message": "string",  "requestId": "string",  "status": 0}
{  "code": "string",  "details": null,  "message": "string",  "requestId": "string",  "status": 0}