API Reference
User Capability Overrides
Grant or withhold one capability for one person (signed-in user only).
2 endpoints· Auth: JWT or API Key
get
/api/v1/console/users/{id}/capability-overrides JWT API KeyGet capability-overrides
The person's role capabilities (at their home branch), their grants and denies, the effective result, what this caller may grant, the non-delegable set and the capability catalogue.
- Capability
manage_users- API key scope
cap:manage_users(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/users/{id}/capability-overrides" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Path parameters
Headers
Set credentials in the “Authorize” menu
put
/api/v1/console/users/{id}/capability-overrides JWTReplace the person's grants and denies (both whole sets)
Self is `CONFLICT``SELF_OVERRIDE_REFUSED`; an owner edited by a non-owner is `FORBIDDEN``OWNER_OVERRIDE_REFUSED`; a new grant the caller does not hold is `FORBIDDEN``CAPABILITY_NOT_GRANTABLE`; a non-delegable grant is `VALIDATION``CAPABILITY_NOT_DELEGABLE`; a stale editor is `CONFLICT``USER_OVERRIDES_CHANGED`. The person is signed out. Answers with the same body as `GET`.
- Capability
manage_users- Signed-in user only
- API keys and OAuth tokens are refused (403). Do this in the dashboard.
Path parameters
| idrequired string (uuid) | — |
Request body
application/json
{
"grants": [
"string"
],
"denies": [
"string"
],
"expectedGrants": [
"string"
],
"expectedDenies": [
"string"
],
"reason": "string"
}| grants string[] | Capabilities this person holds whatever their role says. |
| denies string[] | Capabilities this person never holds, whatever their role says. A DENY always wins. |
| expectedGrants string[] | The grants as the drawer last read them. When sent and no longer the stored set, the save is refused (409 `USER_OVERRIDES_CHANGED`) rather than silently undoing somebody else's edit. Optional, as the roles editor's `expectedCapabilities` is. |
| expectedDenies string[] | The denies as the drawer last read them; see Panoptes.Application.DTOs.Requests.Iam.SetUserCapabilityOverridesRequest.ExpectedGrants. |
| reason string | Optional; recorded in the audit payload. |
Responses
200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/users/{id}/capability-overrides" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"grants": [
"string"
],
"denies": [
"string"
],
"expectedGrants": [
"string"
],
"expectedDenies": [
"string"
],
"reason": "string"
}' Try itagainst staging · https://staging-api.panoptesos.com
Path parameters
Request body (JSON)
Headers
This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu