Principals
Agents and people as Sefra has seen them. Sefra keeps no user store.
GET /v1/principals
Section titled “GET /v1/principals”Agents and people as Sefra has seen them. sefra_viewer and above.
Derived by query from executions, approval decisions and audit events; Sefra has no user store. Sorted by id, paged by after. Counts cover [from, to), by default the last 30 days and at most 90; first and last activity are all time.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
type |
query | string | No | One of agent, person. |
role |
query | string | No | At most, in characters: 128. |
after |
query | string | No | At most, in characters: 512. |
limit |
query | integer | No | Default: 50. Minimum: 1. Maximum: 200. |
from |
query | string | No | Format: date-time. |
to |
query | string | No | Format: date-time. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
One page of principals. | PrincipalList |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |
503 |
The read did not finish in time. Carries Retry-After. |
Problem (application/problem+json) |
GET /v1/principals/{id}
Section titled “GET /v1/principals/{id}”One principal as seen, with every relation it has. sefra_viewer and above.
access is what the active bundle gives an id that submitted executions, under the roles of its newest one: the intents tools/list shows it and the limits admission applies. It is null for anyone else, whose roles for grants are unknown, and without an active bundle.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Any subject an identity provider gave; wider than the grammar of a suspend. At most, in characters: 512. |
from |
query | string | No | Format: date-time. |
to |
query | string | No | Format: date-time. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The principal. | Principal |
400 |
A problem. | Problem (application/problem+json) |
401 |
No valid token (with WWW-Authenticate). |
Problem (application/problem+json) |
403 |
The principal is not human or lacks the role. | Problem (application/problem+json) |
404 |
Sefra has not seen this principal. | Problem (application/problem+json) |
503 |
The read did not finish in time. Carries Retry-After. |
Problem (application/problem+json) |