Every answer is checked against the model shown here before it is sent, and no answer carries a member its model does not list. A member shown as any JSON is one whose shape belongs to somebody else, and says whose. .{key} is a key that is data, and [] an element of a list.
A refusal
Unless an operation below says otherwise, any status it does not list answers this:
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | ||
status |
integer | ||
why |
string |
GET /admin-api/approvals
getApprovals
Administrator acts held for a second administrator
TWO-PERSON APPROVAL (#2166, ASVS 5.0.0 2.3.5), off by default (admin.dualControl, per realm). With it on, the acts table lists are not done when the first administrator asks: each is stored and answered 202 with its id, and waits here until a second, different administrator holding the same authority approves or refuses it, its requester withdraws it, or it expires (admin.dualControlLifetimeHours).
state says whether the control is on and IN FORCE: when fewer than two people could decide an act, the act runs at once and the audit row says nobody approved it (STS-ADMIN-0976), so that a realm can never be locked out. requests lists every held act this realm keeps, pending ones first; with id, request is that one. you is the caller’s name, so a page can tell its own requests from others’.
Mirrors GET /admin/approvals on the admin console.
Scope: admin:read.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
id |
query | string | One held act’s id, as a 202 answer named it. | |
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
200: The control’s state, the table and the held acts.
| Member | Type | Required | What it is |
|---|---|---|---|
request |
object, or null | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
|
request.action |
string | The operation’s action, the last segment of its path. | |
request.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
request.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
request.createdAt |
string | ||
request.decidedAt |
string | ||
request.decidedBy |
string | Who decided it, or withdrew it. | |
request.expiresAt |
string | ||
request.id |
string | yes | The held act’s id, dc_ and 22 characters. |
request.operationId |
string | yes | The /admin-api operation that was asked for. |
request.outcome |
object | How the act answered when it ran. | |
request.outcome.errors |
list | ||
request.outcome.errors[] |
string | ||
request.outcome.ok |
boolean | ||
request.outcome.status |
integer | ||
request.reason |
string | ||
request.requester |
string | yes | Who asked for it. |
request.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
request.what |
string | What it does, in a sentence. | |
requests |
list | yes | |
requests[] |
object | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
|
requests[].action |
string | The operation’s action, the last segment of its path. | |
requests[].authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
requests[].body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
requests[].createdAt |
string | ||
requests[].decidedAt |
string | ||
requests[].decidedBy |
string | Who decided it, or withdrew it. | |
requests[].expiresAt |
string | ||
requests[].id |
string | yes | The held act’s id, dc_ and 22 characters. |
requests[].operationId |
string | yes | The /admin-api operation that was asked for. |
requests[].outcome |
object | How the act answered when it ran. | |
requests[].outcome.errors |
list | ||
requests[].outcome.errors[] |
string | ||
requests[].outcome.ok |
boolean | ||
requests[].outcome.status |
integer | ||
requests[].reason |
string | ||
requests[].requester |
string | yes | Who asked for it. |
requests[].status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
requests[].what |
string | What it does, in a sentence. | |
state |
object | yes | Whether two-person approval (#2166) is on in this realm and IN FORCE: when fewer than two people could decide an act needing an authority, that act runs at once (STS-ADMIN-0976) rather than lock the realm out, and why says so. |
state.authorities |
list | Per authority, how many people could decide an act needing it. | |
state.authorities[].authority |
string | yes | |
state.authorities[].holders |
integer | yes | |
state.authorities[].inForce |
boolean | yes | |
state.inForce |
boolean | yes | |
state.lifetimeHours |
integer | ||
state.on |
boolean | yes | |
state.pending |
integer | How many acts are waiting. | |
state.why |
string | ||
table |
list | yes | |
table[].conditional |
boolean | yes | |
table[].operationId |
string | yes | |
table[].what |
string | yes | |
you |
string |
POST /admin-api/approvals/approve
approveHeldAct
Approve a held act, which then runs
The approver must be a PERSON, not the one who asked, holding the authority the act needs (authority), and must have signed in within account.recentAuthMinutes (401 insufficient_user_authentication otherwise, as RFC 9470 says). The stored operation then runs through its own handler as the requester’s act, its body checked against the operation’s schema again and the state as it is now; the requester must still hold the authority. result is the act’s own answer, and the audit row names both people.
Mirrors POST /admin/approvals on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
id |
string | yes | The held act’s id. |
reason |
string | Why, for the audit row. |
200: Approved, and the act ran: result is its answer.
| Member | Type | Required | What it is |
|---|---|---|---|
approval |
object | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
|
approval.action |
string | The operation’s action, the last segment of its path. | |
approval.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
approval.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
approval.createdAt |
string | ||
approval.decidedAt |
string | ||
approval.decidedBy |
string | Who decided it, or withdrew it. | |
approval.expiresAt |
string | ||
approval.id |
string | yes | The held act’s id, dc_ and 22 characters. |
approval.operationId |
string | yes | The /admin-api operation that was asked for. |
approval.outcome |
object | How the act answered when it ran. | |
approval.outcome.errors |
list | ||
approval.outcome.errors[] |
string | ||
approval.outcome.ok |
boolean | ||
approval.outcome.status |
integer | ||
approval.reason |
string | ||
approval.requester |
string | yes | Who asked for it. |
approval.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
approval.what |
string | What it does, in a sentence. | |
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | ||
result |
any JSON | The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
approval |
object | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
|
approval.action |
string | The operation’s action, the last segment of its path. | |
approval.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
approval.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
approval.createdAt |
string | ||
approval.decidedAt |
string | ||
approval.decidedBy |
string | Who decided it, or withdrew it. | |
approval.expiresAt |
string | ||
approval.id |
string | yes | The held act’s id, dc_ and 22 characters. |
approval.operationId |
string | yes | The /admin-api operation that was asked for. |
approval.outcome |
object | How the act answered when it ran. | |
approval.outcome.errors |
list | ||
approval.outcome.errors[] |
string | ||
approval.outcome.ok |
boolean | ||
approval.outcome.status |
integer | ||
approval.reason |
string | ||
approval.requester |
string | yes | Who asked for it. |
approval.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
approval.what |
string | What it does, in a sentence. | |
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | ||
result |
any JSON | The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. |
401: Sign in again: the approver’s sign-in is older than account.recentAuthMinutes.
| Member | Type | Required | What it is |
|---|---|---|---|
approval |
object | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
|
approval.action |
string | The operation’s action, the last segment of its path. | |
approval.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
approval.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
approval.createdAt |
string | ||
approval.decidedAt |
string | ||
approval.decidedBy |
string | Who decided it, or withdrew it. | |
approval.expiresAt |
string | ||
approval.id |
string | yes | The held act’s id, dc_ and 22 characters. |
approval.operationId |
string | yes | The /admin-api operation that was asked for. |
approval.outcome |
object | How the act answered when it ran. | |
approval.outcome.errors |
list | ||
approval.outcome.errors[] |
string | ||
approval.outcome.ok |
boolean | ||
approval.outcome.status |
integer | ||
approval.reason |
string | ||
approval.requester |
string | yes | Who asked for it. |
approval.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
approval.what |
string | What it does, in a sentence. | |
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | ||
result |
any JSON | The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. |
403: This caller may not decide it: the requester, not a person, or without the authority.
| Member | Type | Required | What it is |
|---|---|---|---|
approval |
object | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
|
approval.action |
string | The operation’s action, the last segment of its path. | |
approval.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
approval.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
approval.createdAt |
string | ||
approval.decidedAt |
string | ||
approval.decidedBy |
string | Who decided it, or withdrew it. | |
approval.expiresAt |
string | ||
approval.id |
string | yes | The held act’s id, dc_ and 22 characters. |
approval.operationId |
string | yes | The /admin-api operation that was asked for. |
approval.outcome |
object | How the act answered when it ran. | |
approval.outcome.errors |
list | ||
approval.outcome.errors[] |
string | ||
approval.outcome.ok |
boolean | ||
approval.outcome.status |
integer | ||
approval.reason |
string | ||
approval.requester |
string | yes | Who asked for it. |
approval.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
approval.what |
string | What it does, in a sentence. | |
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | ||
result |
any JSON | The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. |
404: No such held act in this realm.
| Member | Type | Required | What it is |
|---|---|---|---|
approval |
object | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
|
approval.action |
string | The operation’s action, the last segment of its path. | |
approval.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
approval.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
approval.createdAt |
string | ||
approval.decidedAt |
string | ||
approval.decidedBy |
string | Who decided it, or withdrew it. | |
approval.expiresAt |
string | ||
approval.id |
string | yes | The held act’s id, dc_ and 22 characters. |
approval.operationId |
string | yes | The /admin-api operation that was asked for. |
approval.outcome |
object | How the act answered when it ran. | |
approval.outcome.errors |
list | ||
approval.outcome.errors[] |
string | ||
approval.outcome.ok |
boolean | ||
approval.outcome.status |
integer | ||
approval.reason |
string | ||
approval.requester |
string | yes | Who asked for it. |
approval.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
approval.what |
string | What it does, in a sentence. | |
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | ||
result |
any JSON | The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. |
409: It is no longer pending, or it was approved and the act was refused when it ran (result is that refusal).
| Member | Type | Required | What it is |
|---|---|---|---|
approval |
object | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
|
approval.action |
string | The operation’s action, the last segment of its path. | |
approval.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
approval.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
approval.createdAt |
string | ||
approval.decidedAt |
string | ||
approval.decidedBy |
string | Who decided it, or withdrew it. | |
approval.expiresAt |
string | ||
approval.id |
string | yes | The held act’s id, dc_ and 22 characters. |
approval.operationId |
string | yes | The /admin-api operation that was asked for. |
approval.outcome |
object | How the act answered when it ran. | |
approval.outcome.errors |
list | ||
approval.outcome.errors[] |
string | ||
approval.outcome.ok |
boolean | ||
approval.outcome.status |
integer | ||
approval.reason |
string | ||
approval.requester |
string | yes | Who asked for it. |
approval.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
approval.what |
string | What it does, in a sentence. | |
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | ||
result |
any JSON | The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. |
POST /admin-api/approvals/refuse
refuseHeldAct
Refuse a held act
The same people may refuse as may approve: a person, not the one who asked, holding the act’s authority. Nothing runs.
Mirrors POST /admin/approvals on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
id |
string | yes | The held act’s id. |
reason |
string | Why, for the audit row and the requester. |
200: Refused.
| Member | Type | Required | What it is |
|---|---|---|---|
approval |
object | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
|
approval.action |
string | The operation’s action, the last segment of its path. | |
approval.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
approval.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
approval.createdAt |
string | ||
approval.decidedAt |
string | ||
approval.decidedBy |
string | Who decided it, or withdrew it. | |
approval.expiresAt |
string | ||
approval.id |
string | yes | The held act’s id, dc_ and 22 characters. |
approval.operationId |
string | yes | The /admin-api operation that was asked for. |
approval.outcome |
object | How the act answered when it ran. | |
approval.outcome.errors |
list | ||
approval.outcome.errors[] |
string | ||
approval.outcome.ok |
boolean | ||
approval.outcome.status |
integer | ||
approval.reason |
string | ||
approval.requester |
string | yes | Who asked for it. |
approval.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
approval.what |
string | What it does, in a sentence. | |
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | ||
result |
any JSON | The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
approval |
object | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
|
approval.action |
string | The operation’s action, the last segment of its path. | |
approval.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
approval.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
approval.createdAt |
string | ||
approval.decidedAt |
string | ||
approval.decidedBy |
string | Who decided it, or withdrew it. | |
approval.expiresAt |
string | ||
approval.id |
string | yes | The held act’s id, dc_ and 22 characters. |
approval.operationId |
string | yes | The /admin-api operation that was asked for. |
approval.outcome |
object | How the act answered when it ran. | |
approval.outcome.errors |
list | ||
approval.outcome.errors[] |
string | ||
approval.outcome.ok |
boolean | ||
approval.outcome.status |
integer | ||
approval.reason |
string | ||
approval.requester |
string | yes | Who asked for it. |
approval.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
approval.what |
string | What it does, in a sentence. | |
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | ||
result |
any JSON | The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. |
403: This caller may not decide it.
| Member | Type | Required | What it is |
|---|---|---|---|
approval |
object | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
|
approval.action |
string | The operation’s action, the last segment of its path. | |
approval.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
approval.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
approval.createdAt |
string | ||
approval.decidedAt |
string | ||
approval.decidedBy |
string | Who decided it, or withdrew it. | |
approval.expiresAt |
string | ||
approval.id |
string | yes | The held act’s id, dc_ and 22 characters. |
approval.operationId |
string | yes | The /admin-api operation that was asked for. |
approval.outcome |
object | How the act answered when it ran. | |
approval.outcome.errors |
list | ||
approval.outcome.errors[] |
string | ||
approval.outcome.ok |
boolean | ||
approval.outcome.status |
integer | ||
approval.reason |
string | ||
approval.requester |
string | yes | Who asked for it. |
approval.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
approval.what |
string | What it does, in a sentence. | |
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | ||
result |
any JSON | The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. |
404: No such held act in this realm.
| Member | Type | Required | What it is |
|---|---|---|---|
approval |
object | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
|
approval.action |
string | The operation’s action, the last segment of its path. | |
approval.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
approval.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
approval.createdAt |
string | ||
approval.decidedAt |
string | ||
approval.decidedBy |
string | Who decided it, or withdrew it. | |
approval.expiresAt |
string | ||
approval.id |
string | yes | The held act’s id, dc_ and 22 characters. |
approval.operationId |
string | yes | The /admin-api operation that was asked for. |
approval.outcome |
object | How the act answered when it ran. | |
approval.outcome.errors |
list | ||
approval.outcome.errors[] |
string | ||
approval.outcome.ok |
boolean | ||
approval.outcome.status |
integer | ||
approval.reason |
string | ||
approval.requester |
string | yes | Who asked for it. |
approval.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
approval.what |
string | What it does, in a sentence. | |
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | ||
result |
any JSON | The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. |
409: It is no longer pending.
| Member | Type | Required | What it is |
|---|---|---|---|
approval |
object | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
|
approval.action |
string | The operation’s action, the last segment of its path. | |
approval.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
approval.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
approval.createdAt |
string | ||
approval.decidedAt |
string | ||
approval.decidedBy |
string | Who decided it, or withdrew it. | |
approval.expiresAt |
string | ||
approval.id |
string | yes | The held act’s id, dc_ and 22 characters. |
approval.operationId |
string | yes | The /admin-api operation that was asked for. |
approval.outcome |
object | How the act answered when it ran. | |
approval.outcome.errors |
list | ||
approval.outcome.errors[] |
string | ||
approval.outcome.ok |
boolean | ||
approval.outcome.status |
integer | ||
approval.reason |
string | ||
approval.requester |
string | yes | Who asked for it. |
approval.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
approval.what |
string | What it does, in a sentence. | |
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | ||
result |
any JSON | The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. |
POST /admin-api/approvals/withdraw
withdrawHeldAct
Withdraw an act you asked for
Only the administrator who asked for the act may withdraw it. Nothing runs.
Mirrors POST /admin/approvals on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
id |
string | yes | The held act’s id. |
reason |
string | Why, for the audit row. |
200: Withdrawn.
| Member | Type | Required | What it is |
|---|---|---|---|
approval |
object | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
|
approval.action |
string | The operation’s action, the last segment of its path. | |
approval.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
approval.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
approval.createdAt |
string | ||
approval.decidedAt |
string | ||
approval.decidedBy |
string | Who decided it, or withdrew it. | |
approval.expiresAt |
string | ||
approval.id |
string | yes | The held act’s id, dc_ and 22 characters. |
approval.operationId |
string | yes | The /admin-api operation that was asked for. |
approval.outcome |
object | How the act answered when it ran. | |
approval.outcome.errors |
list | ||
approval.outcome.errors[] |
string | ||
approval.outcome.ok |
boolean | ||
approval.outcome.status |
integer | ||
approval.reason |
string | ||
approval.requester |
string | yes | Who asked for it. |
approval.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
approval.what |
string | What it does, in a sentence. | |
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | ||
result |
any JSON | The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
approval |
object | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
|
approval.action |
string | The operation’s action, the last segment of its path. | |
approval.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
approval.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
approval.createdAt |
string | ||
approval.decidedAt |
string | ||
approval.decidedBy |
string | Who decided it, or withdrew it. | |
approval.expiresAt |
string | ||
approval.id |
string | yes | The held act’s id, dc_ and 22 characters. |
approval.operationId |
string | yes | The /admin-api operation that was asked for. |
approval.outcome |
object | How the act answered when it ran. | |
approval.outcome.errors |
list | ||
approval.outcome.errors[] |
string | ||
approval.outcome.ok |
boolean | ||
approval.outcome.status |
integer | ||
approval.reason |
string | ||
approval.requester |
string | yes | Who asked for it. |
approval.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
approval.what |
string | What it does, in a sentence. | |
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | ||
result |
any JSON | The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. |
403: Somebody else asked for it.
| Member | Type | Required | What it is |
|---|---|---|---|
approval |
object | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
|
approval.action |
string | The operation’s action, the last segment of its path. | |
approval.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
approval.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
approval.createdAt |
string | ||
approval.decidedAt |
string | ||
approval.decidedBy |
string | Who decided it, or withdrew it. | |
approval.expiresAt |
string | ||
approval.id |
string | yes | The held act’s id, dc_ and 22 characters. |
approval.operationId |
string | yes | The /admin-api operation that was asked for. |
approval.outcome |
object | How the act answered when it ran. | |
approval.outcome.errors |
list | ||
approval.outcome.errors[] |
string | ||
approval.outcome.ok |
boolean | ||
approval.outcome.status |
integer | ||
approval.reason |
string | ||
approval.requester |
string | yes | Who asked for it. |
approval.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
approval.what |
string | What it does, in a sentence. | |
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | ||
result |
any JSON | The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. |
404: No such held act in this realm.
| Member | Type | Required | What it is |
|---|---|---|---|
approval |
object | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
|
approval.action |
string | The operation’s action, the last segment of its path. | |
approval.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
approval.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
approval.createdAt |
string | ||
approval.decidedAt |
string | ||
approval.decidedBy |
string | Who decided it, or withdrew it. | |
approval.expiresAt |
string | ||
approval.id |
string | yes | The held act’s id, dc_ and 22 characters. |
approval.operationId |
string | yes | The /admin-api operation that was asked for. |
approval.outcome |
object | How the act answered when it ran. | |
approval.outcome.errors |
list | ||
approval.outcome.errors[] |
string | ||
approval.outcome.ok |
boolean | ||
approval.outcome.status |
integer | ||
approval.reason |
string | ||
approval.requester |
string | yes | Who asked for it. |
approval.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
approval.what |
string | What it does, in a sentence. | |
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | ||
result |
any JSON | The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. |
409: It is no longer pending.
| Member | Type | Required | What it is |
|---|---|---|---|
approval |
object | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
|
approval.action |
string | The operation’s action, the last segment of its path. | |
approval.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
approval.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
approval.createdAt |
string | ||
approval.decidedAt |
string | ||
approval.decidedBy |
string | Who decided it, or withdrew it. | |
approval.expiresAt |
string | ||
approval.id |
string | yes | The held act’s id, dc_ and 22 characters. |
approval.operationId |
string | yes | The /admin-api operation that was asked for. |
approval.outcome |
object | How the act answered when it ran. | |
approval.outcome.errors |
list | ||
approval.outcome.errors[] |
string | ||
approval.outcome.ok |
boolean | ||
approval.outcome.status |
integer | ||
approval.reason |
string | ||
approval.requester |
string | yes | Who asked for it. |
approval.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
approval.what |
string | What it does, in a sentence. | |
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | ||
result |
any JSON | The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. The approved operation’s own answer, which that operation’s model describes; any of twenty-six operations may be approved. |
GET /admin-api/rbac
getAdminRoles
Who may use the admin console, and how the gate is set
The two roles — Admin Read and Admin Write — with every grant, the settings behind the gate, and who the CALLER is (you).
The roles are two ORDINARY GROUPS in the embedded LDAP directory (admin.readGroup, admin.writeGroup), not a store of the console’s own. So this resource, /admin/rbac, an ldapmodify on 389 or 636 and a SCIM PATCH of the group are four doors onto one membership, and a grant made through any of them is visible through all of them.
WRITE IMPLIES READ. A member of the write group does not also need the read group.
The bootstrap administrator (admin.bootstrapUsername, reported in bootstrap) is made a member of both groups at startup. In DEVELOPMENT mode, until it first signs in to /admin (bootstrap.claimedAt), openToAnyone is true and anybody who signs in holds both roles; a process that never seeded it (bootstrap.seeded false) keeps the older rule: open while NEITHER group has a member. In PRODUCT mode the window never opens (windowOpens false, openToAnyone false whatever admin.openWhenEmpty says), and until the bootstrap administrator has claimed the console (bootstrapPasswordRequired true) its roles are honoured only from a PASSWORD sign-in through its own realm, which is also the only sign-in that claims it — a federation partner, a certificate, a wallet or a Kerberos ticket naming it holds nothing. admin.openWhenEmpty turns the open window off, and closedToEveryone reports a console no browser can reach, which is what this resource is the way out of.
enforced reports whether the roster decides anything. It is always true now — the console gate became unconditional on 2026-09-06 — and the field is kept because a client reading it should not have to know that.
EVERY LIST IN THE REPLY IS PAGED. grants by page and per, with page, pages, perPage, firstRow, lastRow and matched at the top level; candidates by candidatesPage and the same per, answered in candidatesPaging. roles carries each role’s counts (memberCount, presentCount, danglingCount, claimedCount) and, since 2026-09-13, not its members and claimed lists: those were every membership unpaged, and they are the rows grants pages — ?role=read narrows it to one role.
Mirrors GET /admin/rbac on the admin console.
Scope: admin:read.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
q |
query | string | Substring of the person’s name or of the raw membership value, case-insensitive. | |
role |
query | one of read, write, security |
Only grants of this role. | |
personq |
query | string | Narrows candidates — the people a role could be granted to — to usernames containing this, case-insensitive. Where the directory is held in memory the list is the directory and who has signed in; where it is a window (#359) it is the direct children of ou=users, a page at a time, and a person who has signed in with no entry is not listed (a typed name can still be granted). candidateSearch says how many candidates there are in all and how many matched. A windowed search’s count stops at countCap (100,000, the furthest the pager reaches; #1308): where more match, matched is countCap and countCapped is true — MORE THAN matched match, and candidatesPaging stops there. Held in memory, the count is exact and countCapped is false. complete says whether this page holds every one it counted: where it is false, incomplete says how many names a DN cannot hold were left out (unusable), how many counted rows the page did not reach (short, most often two entries sharing one RDN value), and whether the list stops at the walk’s cap (capped, cap). |
|
candidatesPage |
query | integer | Which page of the matching candidates, answered in candidatesPaging. Clamped like page. The page size is per when given — shared with grants, as on every reply here carrying two lists — and otherwise twenty, the size of the console’s results pane. candidates was the whole list until 2026-09-13, which on a directory of thousands was thousands of rows on every read of the roster. |
|
personfrom |
query | integer | The console results pane’s OFFSET into the matching candidates, answered as the page it falls on. Ignored when candidatesPage is given, and when it is past the end. |
|
person |
query | string | A username to look up among ALL the candidates, not only the page shown. picked.candidate is its row, or null when nobody by that name could be picked. |
|
page |
query | integer | Which page of the match to return. CLAMPED rather than refused: a page past the end returns the last one, and the reply says which page it actually is. | |
per |
query | integer | Rows per page. Defaults to 50 and is capped at 300. On a drill-down it is SHARED by every list in the reply, which each carry a page number of their own. | |
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
200: The roster, the settings, and who is asking.
| Member | Type | Required | What it is |
|---|---|---|---|
available |
boolean | ||
bootstrap |
object | ||
bootstrap.claimedAt |
string, or null | ||
bootstrap.seeded |
boolean | ||
bootstrap.username |
string, or null | ||
bootstrapPasswordRequired |
boolean | ||
candidatePane |
object | ||
candidatePane.countCapped |
boolean | ||
candidatePane.from |
number | ||
candidatePane.matched |
number | ||
candidatePane.shown |
list | ||
candidatePane.shown[].inDirectory |
boolean | ||
candidatePane.shown[].seen |
boolean | ||
candidatePane.shown[].username |
string | ||
candidateSearch |
object | ||
candidateSearch.complete |
boolean | ||
candidateSearch.countCap |
number | ||
candidateSearch.countCapped |
boolean | ||
candidateSearch.incomplete |
object | ||
candidateSearch.incomplete.cap |
number | ||
candidateSearch.incomplete.capped |
boolean | ||
candidateSearch.incomplete.short |
number | ||
candidateSearch.incomplete.unusable |
number | ||
candidateSearch.matched |
number | ||
candidateSearch.q |
string, or null | ||
candidateSearch.total |
number | ||
candidates |
list | ||
candidates[].inDirectory |
boolean | ||
candidates[].seen |
boolean | ||
candidates[].username |
string | ||
candidatesPaging |
object | ||
candidatesPaging.firstRow |
integer | ||
candidatesPaging.lastRow |
integer | ||
candidatesPaging.noun |
string | ||
candidatesPaging.page |
integer | ||
candidatesPaging.pages |
integer | ||
candidatesPaging.param |
string | ||
candidatesPaging.perPage |
integer | ||
candidatesPaging.total |
integer | ||
closedToEveryone |
boolean | ||
enforced |
boolean | ||
filter |
object | ||
filter.q |
string, or null | ||
filter.role |
string, or null | ||
firstRow |
integer | ||
grantCount |
number | ||
grants |
list | ||
grants[].attribute |
string | ||
grants[].cn |
string | ||
grants[].dn |
string | ||
grants[].holds |
string | ||
grants[].kind |
string | ||
grants[].memberDn |
string | ||
grants[].present |
boolean | ||
grants[].role |
string | ||
grants[].roleLabel |
string | ||
grants[].userKey |
string | ||
grants[].username |
string | ||
grants[].value |
string | ||
groupsDn |
string | ||
known |
map | ||
known.{key} |
boolean | ||
lastRow |
integer | ||
matched |
number | ||
openToAnyone |
boolean | ||
openWhenEmpty |
boolean | ||
page |
integer | ||
pages |
integer | ||
paging |
object | ||
paging.firstRow |
integer | ||
paging.lastRow |
integer | ||
paging.noun |
string | ||
paging.page |
integer | ||
paging.pages |
integer | ||
paging.param |
string | ||
paging.perPage |
integer | ||
paging.total |
integer | ||
perPage |
integer | ||
picked |
object | ||
picked.asked |
string | ||
picked.candidate |
object | ||
picked.candidate.inDirectory |
boolean | ||
picked.candidate.seen |
boolean | ||
picked.candidate.username |
string | ||
roleChoices |
list | ||
roleChoices[].id |
string | ||
roleChoices[].implies |
list | ||
roleChoices[].implies[] |
string | ||
roleChoices[].label |
string | ||
roleChoices[].setting |
string | ||
roleChoices[].what |
string | ||
roles |
list | ||
roles[].claimedCount |
number | ||
roles[].cn |
string | ||
roles[].createdAt |
string, or number, or null | ||
roles[].danglingCount |
number | ||
roles[].dn |
string | ||
roles[].exists |
boolean | ||
roles[].implies |
list | ||
roles[].implies[] |
string | ||
roles[].label |
string | ||
roles[].memberCount |
number | ||
roles[].modifiedAt |
string, or number, or null | ||
roles[].origin |
string | ||
roles[].presentCount |
number | ||
roles[].role |
string | ||
roles[].what |
string | ||
settings |
object | ||
settings.context |
object | ||
settings.context.configFile |
string, or null | ||
settings.context.defaultsFile |
string, or null | ||
settings.context.inRealm |
boolean | ||
settings.context.persistenceMode |
string | ||
settings.context.persistsAppconfig |
boolean | ||
settings.context.persistsRealms |
boolean | ||
settings.context.realmId |
string | ||
settings.editableCount |
integer | ||
settings.groups |
list | ||
settings.groups[].group |
string | ||
settings.groups[].settings |
list | ||
settings.groups[].settings[].appconfigPath |
string | ||
settings.groups[].settings[].csvValueNotes |
map | ||
settings.groups[].settings[].csvValueNotes.{key} |
string | ||
settings.groups[].settings[].csvValues |
list | ||
settings.groups[].settings[].csvValues[] |
string, or number, or boolean, or null | ||
settings.groups[].settings[].default |
list, or string, or number, or boolean, or null | ||
settings.groups[].settings[].default[] |
string, or number, or boolean, or null | ||
settings.groups[].settings[].description |
string | ||
settings.groups[].settings[].editRefusal |
string | ||
settings.groups[].settings[].editable |
boolean | ||
settings.groups[].settings[].enumValues |
list | ||
settings.groups[].settings[].enumValues[] |
string, or number, or boolean, or null | ||
settings.groups[].settings[].env |
list, or string | ||
settings.groups[].settings[].env[] |
string | ||
settings.groups[].settings[].group |
string | ||
settings.groups[].settings[].key |
string | ||
settings.groups[].settings[].label |
string | ||
settings.groups[].settings[].legacyEnv |
list, or string | ||
settings.groups[].settings[].legacyEnv[] |
string | ||
settings.groups[].settings[].masked |
boolean | ||
settings.groups[].settings[].max |
number | ||
settings.groups[].settings[].min |
number | ||
settings.groups[].settings[].ordered |
boolean | ||
settings.groups[].settings[].overridden |
boolean | ||
settings.groups[].settings[].realmSettable |
boolean | ||
settings.groups[].settings[].restartReason |
string | ||
settings.groups[].settings[].selectAll |
object | ||
settings.groups[].settings[].selectAll.aloneWhileOn |
list | ||
settings.groups[].settings[].selectAll.aloneWhileOn[].canBeOn |
object | Nested deeper than this page draws. | |
settings.groups[].settings[].selectAll.aloneWhileOn[].on |
object | Nested deeper than this page draws. | |
settings.groups[].settings[].selectAll.aloneWhileOn[].setting |
object | Nested deeper than this page draws. | |
settings.groups[].settings[].selectAll.aloneWhileOn[].values |
object | Nested deeper than this page draws. | |
settings.groups[].settings[].selectAll.onlyWhileOn |
list | ||
settings.groups[].settings[].selectAll.onlyWhileOn[].canBeOn |
object | Nested deeper than this page draws. | |
settings.groups[].settings[].selectAll.onlyWhileOn[].on |
object | Nested deeper than this page draws. | |
settings.groups[].settings[].selectAll.onlyWhileOn[].setting |
object | Nested deeper than this page draws. | |
settings.groups[].settings[].selectAll.onlyWhileOn[].values |
object | Nested deeper than this page draws. | |
settings.groups[].settings[].source |
string | ||
settings.groups[].settings[].step |
number | ||
settings.groups[].settings[].text |
string, or null | ||
settings.groups[].settings[].type |
string | ||
settings.groups[].settings[].value |
list, or string, or number, or boolean, or null | ||
settings.groups[].settings[].value[] |
string, or number, or boolean, or null | ||
settings.overridden |
list | ||
settings.overridden[] |
string | ||
settings.page |
string | ||
settings.setWith |
string | ||
settings.settingCount |
integer | ||
settings.sharedWith |
map | ||
settings.sharedWith.{key} |
list | ||
settings.sharedWith.{key}[] |
object, or string | ||
settings.sharedWith.{key}[].label |
string | ||
settings.sharedWith.{key}[].path |
string | ||
shown |
number | ||
usersDn |
string | ||
windowOpens |
boolean | ||
you |
object | ||
you.read |
boolean | ||
you.roles |
list | ||
you.roles[] |
string | ||
you.username |
string, or null | ||
you.viaEmptyRoster |
boolean | ||
you.write |
boolean |
400: The answer.
| Member | Type | Required | What it is |
|---|---|---|---|
error |
string | ||
error_description |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes |
POST /admin-api/rbac/grant
grantAdminRole
Give somebody a console role
Adds them to the role’s group as a member, creating the group if this is the first grant — which is why “the group does not exist” and “the group has no members” are the same state everywhere in this feature.
The person must exist. A name with no entry in this realm’s directory is REFUSED with 400, reason: "noSuchPerson" and an errors sentence naming them, and nothing is written: create them first (POST /admin-api/users/create) and grant the role then. A role is granted only to somebody who exists, so that a person created later under the same name inherits nothing. A name carrying a character RFC 4514 reserves in a DN is refused too — the same refusal POST /admin-api/users/create gives, for the same reason.
Granting a role somebody already holds answers 200 with changed: false rather than 400, so a script that grants on every run does not fail on its second one.
THE FIRST GRANT ON A SERVICE CLOSES THE DOOR BEHIND IT. While the roster is empty anybody who signs in holds both roles; the moment one grant exists, everybody not in one of the two groups is refused at every page of the console. Grant yourself first.
Mirrors POST /admin/rbac on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
role |
one of read, write, security |
yes | write includes read. |
username |
string | yes | The name they sign in as — the same string that appears in a token’s sub and on /admin/users. |
200: What was granted, and where the membership was written. changed: false means they already held it.
| Member | Type | Required | What it is |
|---|---|---|---|
changed |
boolean | ||
created |
boolean | ||
dn |
string | ||
entry |
object | ||
entry.attributes |
map | ||
entry.attributes.{key} |
list, or string | ||
entry.attributes.{key}[] |
string | ||
entry.createdAt |
string, or number, or null | ||
entry.dn |
string | ||
entry.members |
list | ||
entry.members[].attribute |
string | ||
entry.members[].cn |
string | ||
entry.members[].displayName |
string | ||
entry.members[].dn |
string | ||
entry.members[].holds |
string | ||
entry.members[].kind |
string | ||
entry.members[].mail |
string | ||
entry.members[].present |
boolean | ||
entry.members[].userKey |
string | ||
entry.members[].value |
string | ||
entry.modifiedAt |
string, or number, or null | ||
entry.operational |
list | ||
entry.operational[] |
string | ||
entry.origin |
string | ||
entry.rule |
string | ||
errors |
list | ||
errors[] |
string | ||
member |
string | ||
message |
string | ||
ok |
boolean | yes | |
problems |
list | ||
problems[] |
map, or string | ||
problems[].{key} |
string, or number, or boolean, or null | ||
reason |
string | ||
resolves |
boolean | ||
role |
string | ||
username |
string |
202: Two-person approval is on and this act is one it holds (#2166): nothing was done yet. approval is the held request — its id, and the time it expires — and Location names it at GET /admin-api/approvals. A second administrator approves or refuses it with POST /admin-api/approvals/{action}.
| Member | Type | Required | What it is |
|---|---|---|---|
approval |
object | yes | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
approval.action |
string | The operation’s action, the last segment of its path. | |
approval.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
approval.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
approval.createdAt |
string | ||
approval.decidedAt |
string | ||
approval.decidedBy |
string | Who decided it, or withdrew it. | |
approval.expiresAt |
string | ||
approval.id |
string | yes | The held act’s id, dc_ and 22 characters. |
approval.operationId |
string | yes | The /admin-api operation that was asked for. |
approval.outcome |
object | How the act answered when it ran. | |
approval.outcome.errors |
list | ||
approval.outcome.errors[] |
string | ||
approval.outcome.ok |
boolean | ||
approval.outcome.status |
integer | ||
approval.reason |
string | ||
approval.requester |
string | yes | Who asked for it. |
approval.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
approval.what |
string | What it does, in a sentence. | |
message |
string | ||
ok |
boolean | yes | |
pending |
boolean | yes | Always true: the act waits for a second administrator. |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
changed |
boolean | ||
created |
boolean | ||
dn |
string | ||
entry |
object | ||
entry.attributes |
map | ||
entry.attributes.{key} |
list, or string | ||
entry.attributes.{key}[] |
string | ||
entry.createdAt |
string, or number, or null | ||
entry.dn |
string | ||
entry.members |
list | ||
entry.members[].attribute |
string | ||
entry.members[].cn |
string | ||
entry.members[].displayName |
string | ||
entry.members[].dn |
string | ||
entry.members[].holds |
string | ||
entry.members[].kind |
string | ||
entry.members[].mail |
string | ||
entry.members[].present |
boolean | ||
entry.members[].userKey |
string | ||
entry.members[].value |
string | ||
entry.modifiedAt |
string, or number, or null | ||
entry.operational |
list | ||
entry.operational[] |
string | ||
entry.origin |
string | ||
entry.rule |
string | ||
errors |
list | ||
errors[] |
string | ||
member |
string | ||
message |
string | ||
ok |
boolean | yes | |
problems |
list | ||
problems[] |
map, or string | ||
problems[].{key} |
string, or number, or boolean, or null | ||
reason |
string | ||
resolves |
boolean | ||
role |
string | ||
username |
string |
POST /admin-api/rbac/revoke
revokeAdminRole
Take a console role away
Removes them from the role’s group — from EVERY membership attribute that named them (member, uniqueMember, memberUid) rather than from the first one found, because a person listed twice by two clients would otherwise still hold the role after a revoke that reported success.
Revoking a role somebody does not hold answers 200 with changed: false, and so does revoking from a group that does not exist.
Taking away the LAST grant empties the roster. Where no bootstrap administrator was seeded that re-opens the console to anybody who signs in, in development mode (or closes it to everybody, if admin.openWhenEmpty is off, and always in product mode); once the bootstrap administrator has signed in it closes the console to everybody. The reply says which.
Mirrors POST /admin/rbac on the admin console.
Scope: admin:write.
Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
DPoP |
header | string | RFC 9449: the proof of possession for a DPoP-bound access token, as Authorization: DPoP <token> requires. |
|
cell |
query | string | The cell to answer this request, where this service runs as several. Ignored in a service that runs as one. |
Request body
| Member | Type | Required | What it is |
|---|---|---|---|
role |
one of read, write, security |
yes | |
username |
string | yes | Who to take it from. |
200: What was removed, and whether the roster is now empty.
| Member | Type | Required | What it is |
|---|---|---|---|
changed |
boolean | ||
dn |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes | |
problems |
list | ||
problems[] |
map, or string | ||
problems[].{key} |
string, or number, or boolean, or null | ||
reason |
string | ||
removed |
number | ||
role |
string | ||
username |
string |
202: Two-person approval is on and this act is one it holds (#2166): nothing was done yet. approval is the held request — its id, and the time it expires — and Location names it at GET /admin-api/approvals. A second administrator approves or refuses it with POST /admin-api/approvals/{action}.
| Member | Type | Required | What it is |
|---|---|---|---|
approval |
object | yes | An administrator act held for a second administrator (#2166), as the console and the API show it. A body member that names a private key or a password is shown as (withheld). |
approval.action |
string | The operation’s action, the last segment of its path. | |
approval.authority |
string | yes | The role the act needs, which whoever decides it must hold too: ADMIN_WRITE or SECURITY_ADMIN. |
approval.body |
any JSON | The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. The held operation’s own request body, as its schema passed it: its shape is that operation’s, and any of twenty-six operations may be held. | |
approval.createdAt |
string | ||
approval.decidedAt |
string | ||
approval.decidedBy |
string | Who decided it, or withdrew it. | |
approval.expiresAt |
string | ||
approval.id |
string | yes | The held act’s id, dc_ and 22 characters. |
approval.operationId |
string | yes | The /admin-api operation that was asked for. |
approval.outcome |
object | How the act answered when it ran. | |
approval.outcome.errors |
list | ||
approval.outcome.errors[] |
string | ||
approval.outcome.ok |
boolean | ||
approval.outcome.status |
integer | ||
approval.reason |
string | ||
approval.requester |
string | yes | Who asked for it. |
approval.status |
one of pending, approved, done, failed, refused, withdrawn, expired |
yes | pending until somebody decides it; then done (approved and run), failed (approved, and the act was refused when it ran, or its requester no longer held the authority), refused, withdrawn or expired. |
approval.what |
string | What it does, in a sentence. | |
message |
string | ||
ok |
boolean | yes | |
pending |
boolean | yes | Always true: the act waits for a second administrator. |
400: The operation was refused; errors says why and nothing changed.
| Member | Type | Required | What it is |
|---|---|---|---|
changed |
boolean | ||
dn |
string | ||
errors |
list | ||
errors[] |
string | ||
message |
string | ||
ok |
boolean | yes | |
problems |
list | ||
problems[] |
map, or string | ||
problems[].{key} |
string, or number, or boolean, or null | ||
reason |
string | ||
removed |
number | ||
role |
string | ||
username |
string |