User Management API
Create, search, and manage user accounts. Covers full lifecycle operations, self-service profile management, and user type schema definitions.
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:8090/oauth2/token, authorization URL https://localhost:8090/oauth2/authorize
1 scopes
| Scope | Description |
|---|---|
system | Access to system management APIs |
clientCredentials flow, token URL https://localhost:8090/oauth2/token
1 scopes
| Scope | Description |
|---|---|
system | Access to system management APIs |
Users
CRUD operations for user accounts including attribute management, role assignment, and group membership.
List users
GET /users
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | Maximum number of records to return. Must be between 1 and 100 inclusive. Default: | |
offset | query | integer | Number of records to skip for pagination. Must be a non-negative integer. Default: | |
filter | query | string | Filter users by attribute values.
Supported operators: eq (ie. equals).
Format:
| |
include | query | string | Optional parameter to include additional display information in the response. The exact fields included depend on the endpoint. See each endpoint's response schema for details on which fields are enriched. Allowed values: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | List of users | UserListResponse |
400 | Bad request | Error |
500 | Internal server error |
Create a new user
POST /users
Scopes: system
Request body (required): application/json
Schema: CreateUserRequest
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
ouId | string (uuid) | Yes | The organization unit ID where the user will be created |
type | string | Yes | The handle of the user type |
attributes | object | User attributes |
Responses
| Code | Description | Schema |
|---|---|---|
201 | User created | User |
400 | Bad request | Error |
409 | Conflict | Error |
500 | Internal server error |
Get a user by id
GET /users/{id}
With ouId, the user is read as that organization unit sees it: one the unit owns, or one
shared into it. A shared user is returned under the unit it is shared into, and
isOwnedByOU says which of the two it is. The caller needs to be able to read users in that
unit, and a user the unit can't see answers 404.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes | |
ouId | query | string (uuid) | The organization unit to read the user in. | |
include | query | string | Optional parameter to include additional display information in the response. The exact fields included depend on the endpoint. See each endpoint's response schema for details on which fields are enriched. Allowed values: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | User details | User |
403 | The caller may not read the user, or with ouId, users in that organization unit | |
404 | User not found, or with ouId, not owned by or shared into that organization unit | |
500 | Internal server error |
Update a user by id
PUT /users/{id}
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes |
Request body (required): application/json
Schema: UpdateUserRequest
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
ouId | string (uuid) | The organization unit ID where the user belongs | |
type | string | The handle of the user type | |
attributes | object | User attributes |
Responses
| Code | Description | Schema |
|---|---|---|
200 | User updated, with its | User |
400 | Bad request | Error |
404 | User not found | Error |
409 | Conflict | Error |
500 | Internal server error |
Update user credentials by id
POST /users/{id}/update-credentials
Sets new credential values (such as passwords) for a user. Only credential fields defined in the user type schema can be updated. System-managed credentials (e.g. passkeys) are rejected.
You do not need to provide all credential fields; only the fields present in the request body are updated.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes |
Request body (required): application/json
Schema: UpdateUserCredentialsRequest
1 property
| Name | Type | Required | Description |
|---|---|---|---|
credentials | object | Yes | Credential key-value pairs to update. Keys must match credential fields defined in the user type schema. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Credentials updated | |
400 | Bad request | Error |
404 | User not found | Error |
500 | Internal server error | Error |
List groups that the user belongs to
GET /users/{id}/groups
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes | The unique identifier of the user |
limit | query | integer | Maximum number of records to return. Must be between 1 and 100 inclusive. Default: | |
offset | query | integer | Number of records to skip for pagination. Must be a non-negative integer. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | List of groups that the user belongs to | UserGroupListResponse |
400 | Bad request | Error |
404 | User not found | Error |
500 | Internal server error | Error |
Get user usages
GET /users/{id}/usages
Returns the resources that reference this user, aggregated across all resource types. For example, agents that list this user as their owner. This endpoint is informational only — it drives the pre-delete confirmation dialog in the UI and does not gate deletion on the server.
Each usage entry includes a behaviorOnDelete field describing what happens to the
referencing resource if the user is deleted:
fallback: the reference is kept as-is.cascade: the resource is permanently deleted along with the user.
When usage data is unavailable (e.g. the server has not fully initialised),
totalResults and summary are null rather than 0/empty. Consumers must treat
null as "unknown" and 0 as "confirmed empty".
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes | The unique identifier of the user |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Resources that reference this user | ResourceUsagesResponse |
404 | User not found | Error |
500 | Internal server error | Error |
users-by-path
Create and list users within an organization unit identified by its handle path.
List users in organization unit specified by handle path
GET /users/tree/{path}
Lists the users the organization unit owns, followed by the users shared into it. Each
listed user's isOwnedByOU field says which of the two it is.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
path | path | string | Yes | Hierarchical path of organization unit handles separated by forward slashes. Examples:
|
limit | query | integer | Maximum number of records to return. Must be between 1 and 100 inclusive. Default: | |
offset | query | integer | Number of records to skip for pagination. Must be a non-negative integer. Default: | |
include | query | string | Optional parameter to include additional display information in the response. The exact fields included depend on the endpoint. See each endpoint's response schema for details on which fields are enriched. Allowed values: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | List of users in the organization unit | UserListResponse |
400 | Bad request | Error |
404 | Organization unit not found | Error |
500 | Internal server error | string |
Create a new user under the organization unit specified by the handle path
POST /users/tree/{path}
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
path | path | string | Yes | Hierarchical path of organization unit handles separated by forward slashes. The new user will be created under the organization unit specified by this path. Examples:
|
Request body (required): application/json
Schema: CreateUserByPathRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | The handle of the user type |
attributes | object | User attributes |
Responses
| Code | Description | Schema |
|---|---|---|
201 | User created | User |
400 | Bad request | Error |
404 | Organization unit not found | Error |
409 | Conflict | Error |
500 | Internal server error | string |
Self
Self-service operations that the authenticated user performs on their own profile.
Update self user profile
PUT /users/me
Request body (required): application/json
Schema: UpdateSelfUserRequest
1 property
| Name | Type | Required | Description |
|---|---|---|---|
attributes | object | Yes | User attributes |
Responses
| Code | Description | Schema |
|---|---|---|
200 | User updated, with its | User |
400 | Bad request | Error |
401 | Unauthorized - missing or invalid authentication token | Error |
404 | Authenticated user not found | Error |
409 | Conflict | Error |
500 | Internal server error | Error |
List the organization units the caller can access
GET /users/me/ous
Lists the organization units the signed-in user can access: the one the user lives in and every one the user is shared into, directly or through a reshare.
current is the organization unit the list is relative to: the one the caller's token was
issued for, or the user's own when the token names none. It is returned whatever the scope
or page, because the units a scope selects may not include it.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
scope | query | string | Narrows the list, relative to
Allowed values: | |
limit | query | integer | Maximum number of records to return. Must be between 1 and 100 inclusive. Default: | |
offset | query | integer | Number of records to skip for pagination. Must be a non-negative integer. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Organization units the caller can access | AccessibleOrganizationUnitListResponse |
400 | Invalid scope or pagination parameter | Error |
401 | Unauthorized - missing or invalid authentication token | Error |
404 | Authenticated user not found. A token issued to an application or an agent rather than a user is answered this way too. | Error |
500 | Internal server error | Error |
Update self user credentials
POST /users/me/update-credentials
Request body (required): application/json
Schema: UpdateSelfUserRequest
1 property
| Name | Type | Required | Description |
|---|---|---|---|
attributes | object | Yes | User attributes |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Credentials updated | |
400 | Bad request | Error |
401 | Unauthorized - missing or invalid authentication token | Error |
404 | Authenticated user not found | Error |
500 | Internal server error | Error |
User Types
Manage user type schemas that define the attribute structure for different user categories.
List user type schemas
GET /user-types
Retrieves a list of all user type schemas that define the structure and attributes for different user types.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | Maximum number of records to return. Must be between 1 and 100 inclusive. Default: | |
offset | query | integer | Number of records to skip for pagination. Must be a non-negative integer. Default: | |
include | query | string | Optional parameter to include additional display information in the response. The exact fields included depend on the endpoint. See each endpoint's response schema for details on which fields are enriched. Allowed values: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | List of user type schemas | UserTypeListResponse |
400 | Bad request | Error |
500 | Internal server error |
Create a new user type schema
POST /user-types
Creates a new user type schema that defines the structure and attributes for a specific user type.
Scopes: system
Request body (required): application/json
Schema: CreateUserTypeRequest
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Yes | Unique handle for the user type (lowercase letters, numbers, hyphens, and underscores only). The handle must be unique among user types. Once set, the handle cannot be changed. |
displayName | string | Yes | Human-readable name of the user type. It does not need to be unique. |
ouId | string (uuid) | Yes | The organization unit ID where this user type schema is applicable |
allowSelfRegistration | boolean | Whether the user type supports user-initiated registration Default: | |
systemAttributes | systemAttributes | System-level metadata for the user type | |
schema | object | Yes | JSON Schema definition for the user type |
Responses
| Code | Description | Schema |
|---|---|---|
201 | User type created | UserType |
400 | Bad request | Error |
409 | Conflict | Error |
500 | Internal server error |
Get a user type schema by ID
GET /user-types/{id}
Retrieves the details of a specific user type schema by its ID.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes | |
include | query | string | Optional parameter to include additional display information in the response. The exact fields included depend on the endpoint. See each endpoint's response schema for details on which fields are enriched. Allowed values: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | User type details | UserType |
404 | User type not found | Error |
500 | Internal server error |
Update a user type schema by ID
PUT /user-types/{id}
Updates an existing user type schema with new attribute definitions. This operation replaces the entire schema definition. The handle is optional. When provided, it must match the existing handle of the user type. The display name can be changed at any time.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes |
Request body (required): application/json
Schema: UpdateUserTypeRequest
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Optional. The handle cannot be changed, so when provided it must match the handle the user type was created with. When omitted, the existing handle is kept. | |
displayName | string | Yes | Human-readable name of the user type. It does not need to be unique. |
ouId | string (uuid) | Yes | The root organization unit ID where this user type schema is applicable |
allowSelfRegistration | boolean | Whether the user type supports user-initiated registration Default: | |
systemAttributes | systemAttributes | System-level metadata for the user type | |
schema | object | Yes | JSON Schema definition for the user type |
Responses
| Code | Description | Schema |
|---|---|---|
200 | User type updated | UserType |
400 | Bad request | Error |
404 | User type not found | Error |
500 | Internal server error |
Delete a user type schema by ID
DEL /user-types/{id}
Deletes a user type schema. This operation will fail if there are existing users of this type.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
204 | User type deleted | |
400 | Bad request | Error |
500 | Internal server error |
User Sharing
Share a user into other organization units without copying it, and resolve where it is visible.
List sharing policies
GET /users/{id}/sharing-policies
Returns the user's sharing policies. A caller allowed to read users in the user's own organization unit sees every policy; any other caller sees only the policies its own organization units issued.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes | User ID |
limit | query | integer | Maximum number of records to return. Must be between 1 and 100 inclusive. Default: | |
offset | query | integer | Number of records to skip for pagination. Must be a non-negative integer. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Sharing policies | UserSharingPolicyListResponse |
400 | The page the listing asked for is not one it can return. | Error |
403 | The caller may not act for the organization unit the request concerns: the initiating organization unit for a create, edit, or delete, and the user's own unit or the policy's initiating unit for a read. | Error |
404 | No such user | Error |
500 | Internal server error | Error |
Create a sharing policy
POST /users/{id}/sharing-policies
Records one organization unit's decision about which other organization units this user is shared into. The user is not copied: the same identity becomes visible in the organization units the policy reaches, and keeps living in its own. Exactly one policy exists per user per initiating organization unit; a second create is refused.
The caller must be allowed to update users in the initiating organization unit: the user's own unit for a share, or, for a reshare, a unit the user was already shared into. A user cannot share itself.
A user declared in a resource file declares its owner's policy there too, so this endpoint refuses one for it. An organization unit the declared policy shares with can still record its own reshare here, unless users are configured to load from resource files only: then all of their sharing, reshares included, is declared, and this endpoint refuses every policy.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes | User ID |
Request body (required): application/json
Schema: UserSharingPolicyRequest
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
initiatingOuId | string | The organization unit whose decision this is. Omitted means the user's owner. A
unit other than the owner may only issue a policy where the user already reached
it and stopped there, and such a policy may state | |
childUnits | UserChildUnits | The organization units beneath the issuer. Exactly one of the two shapes below, chosen by
| |
otherTreeRoots | UserOtherTreeRootsSelected | Named root organization units of other trees, and nothing below them. Owner only. Another tree is reached at its root alone; that root passes the user on within its own tree. The root of the owner's own tree is not another tree and cannot be named. When the owner sits below a root, this additionally requires
| |
version | integer | The policy version the caller believes it is editing. Required on an edit, ignored on a create. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Sharing policy created | UserSharingPolicy |
400 | The policy is not one the issuing organization unit may write. The code says which kind of mistake it is, and the description says what is wrong with this request in particular. | Error |
403 | The caller may not act for the organization unit the request concerns: the initiating organization unit for a create, edit, or delete, and the user's own unit or the policy's initiating unit for a read. | Error |
404 | No such user | Error |
409 | The organization unit already holds a policy for this user, or the policy moved since it was read. | Error |
500 | Internal server error | Error |
Get a sharing policy
GET /users/{id}/sharing-policies/{policyId}
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes | User ID |
policyId | path | string | Yes | Sharing policy ID |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Sharing policy | UserSharingPolicy |
403 | The caller may not act for the organization unit the request concerns: the initiating organization unit for a create, edit, or delete, and the user's own unit or the policy's initiating unit for a read. | Error |
404 | No such sharing policy on this user | Error |
500 | Internal server error | Error |
Replace a sharing policy
PUT /users/{id}/sharing-policies/{policyId}
Replaces the policy's sections. The request carries the version the caller believes it is
editing; an edit against a stale version is refused rather than silently flattening another
write.
Each section is held to the rule on its own. A section that reaches a whole group (mode: all, or allUnits) keeps that reach: its exclusions can be added or removed, but it cannot
be dropped or turned into one that names units. A section that names units may add or drop
them or change their reach, and cannot become one that reaches a whole group. No edit may
reach past an organization unit that has already shared the user on.
This holds for allUnits and for otherTreeRoots with mode: all too, which a create may
not state. A policy that was imported with one keeps it: restate the section here and
rewrite its excludedOuIds to withhold units from it or hand them back. Editing a narrower
policy into one of those is refused, so the edit cannot reach where the create could not.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes | User ID |
policyId | path | string | Yes | Sharing policy ID |
Request body (required): application/json
Schema: UserSharingPolicyUpdateRequest
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
allUnits | UserAllUnits | Every organization unit in the deployment, at any depth, including units created later. It
stands alone: a policy that states it states neither A reach not bounded by the issuer's own position in the tree is a deployment decision, so it is written where such decisions are reviewed: a resource file, or a document imported from one. A create through this API may not state it. A policy written that way still reads back through these endpoints, and an edit restates it to rewrite its exclusions. | |
childUnits | UserChildUnits | The organization units beneath the issuer. Exactly one of the two shapes below, chosen by
| |
otherTreeRoots | UserOtherTreeRoots | The root organization units of other trees, as a policy carries them. Every shape a create may send, plus the one that only a resource file or an imported document may introduce. An edit sends this shape rather than the create's, because a policy that already reaches the root of every other tree has to be able to restate that to rewrite its exclusions. | |
version | integer | Yes | The policy version the caller believes it is editing. An edit against any other version is refused, so a caller that has not seen the current one cannot overwrite it. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Sharing policy replaced | UserSharingPolicy |
400 | The replacement is not one this policy may become. Alongside the mistakes a create can make, an edit answers for the reach the policy already has. | Error |
403 | The caller may not act for the organization unit the request concerns: the initiating organization unit for a create, edit, or delete, and the user's own unit or the policy's initiating unit for a read. | Error |
404 | No such sharing policy on this user | Error |
409 | The organization unit already holds a policy for this user, or the policy moved since it was read. | Error |
500 | Internal server error | Error |
Delete a sharing policy
DEL /users/{id}/sharing-policies/{policyId}
Removes the policy and everything that depended on it: the policies its sharees issued, and the per-organization-unit state of every unit that loses sight of the user.
A declared policy cannot be deleted here. Its existence belongs to the resource file that declares it, so it goes away by being removed from that file.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes | User ID |
policyId | path | string | Yes | Sharing policy ID |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Sharing policy deleted, or the user holds no policy under that id. | |
400 | The policy exists but is not this endpoint's to remove. A policy that is simply absent answers 204, because a delete says what the state should be afterwards. | Error |
403 | The caller may not act for the organization unit the request concerns: the initiating organization unit for a create, edit, or delete, and the user's own unit or the policy's initiating unit for a read. | Error |
404 | No such user | Error |
500 | Internal server error | Error |
Overlay rules for an organization unit
GET /users/{id}/overlay-rules
Answers for one organization unit, named in the ouId query parameter: whether it owns the
user, which policies reached it, and the roles rule when a share mandates roles for the
user there.
An organization unit no policy reaches answers 404, because the user is not
available there and so has no terms to resolve.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes | User ID |
ouId | query | string | Yes | The organization unit to resolve for. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Resolved overlay | UserResolvedOverlay |
400 | The request does not say which organization unit to resolve for. | Error |
403 | The caller may not act for the organization unit the request concerns: the initiating organization unit for a create, edit, or delete, and the user's own unit or the policy's initiating unit for a read. | Error |
404 | No such user, or no sharing policy reaches the organization unit, so the user is not available there and has no terms to resolve. | Error |
500 | Internal server error | Error |
Schemas
ResourceUsage
Type: object
A single resource that references the target resource.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
resourceType | string | Yes | Type of the referencing resource. Allowed values: |
id | string (uuid) | Yes | Identifier of the referencing resource. |
displayName | string | Yes | Human-readable name of the referencing resource. |
behaviorOnDelete | string | Yes | What happens to this resource when the target resource is deleted.
Allowed values: |
ResourceUsagesSummary
Type: object
Per-resource-type count of usages, keyed by resource type
(e.g. agent). Null when the counts could not be determined.
ResourceUsagesResponse
Type: object
Resources that reference a target resource, aggregated across all resource types. Drives pre-delete confirmation dialogs; informational only.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | Total number of resources that reference the target resource. Null when usage data is unavailable; 0 means confirmed empty. | |
count | integer | Number of results returned. | |
summary | ResourceUsagesSummary | Per-resource-type count of usages, keyed by resource type
(e.g. | |
usages | array of ResourceUsage |
User
Type: object
11 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | |
ouId | string (uuid) | ||
ouHandle | string | Human-readable handle of the organization unit (only included when include=display query parameter is used). | |
type | string | ||
verifiedAttributes | object | Verification timestamps, one for each recorded verification of the user's attributes. Empty when none is verified. Omitted from a listing that returns identifiers only, and when the verification state could not be read. Set by the server and never accepted on a write. | |
attributes | object | ||
display | string | Display name of the user (only included when include=display query parameter is used). Resolved from the schema-configured display attribute ( | |
isReadOnly | boolean | Whether the user is declarative and cannot be modified or deleted by clients. | |
isOwnedByOU | boolean | Whether the listed organization unit owns the user rather than being shared it. Present
in user lists, and when a user is read with | |
status | UserAccessStatus | The user's effective access status and the reason for it. Computed when the user is read or updated, and never accepted on a write. | |
lastLoginAt | string (date-time) | When the user last signed in, including session reuse. Set by the server and never accepted on a write. Absent until recorded. Recording is off for users unless
|
UserAccessStatus
Type: object
The user's effective access status and the reason for it. Computed when the user is read or updated, and never accepted on a write.
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
value | string |
Allowed values: | |
details | object | Why the status applies and how it is cleared. Absent for An authentication refusal states only that the account is locked or suspended. The locked methods, expiry times, and operator note are returned only here, to callers allowed to read the user. | |
details.reason | string | What caused the status. One reason covers every entry in Allowed values: | |
details.since | string (date-time) | When the operator placed the hold. Absent for an automatic lock. | |
details.operatorNote | string | The note the operator entered when placing the hold. Absent when none was entered.
Never included in an authentication refusal or in | |
details.lockedMethods | array of object | The automatic locks currently in force, in a stable order. Absent unless the status
is With |
AccessibleOrganizationUnit
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | |
handle | string | Yes | |
name | string | Yes | |
logoUrl | string (uri) |
AccessibleOrganizationUnitListResponse
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
current | string (uuid) | Yes | The organization unit the list is relative to. |
totalResults | integer | Yes | Number of results that match the listing operation. |
startIndex | integer | Yes | Index of the first element of the page, which will be equal to offset + 1. |
count | integer | Yes | Number of elements in the returned page. |
organizationUnits | array of AccessibleOrganizationUnit | Yes | |
links | array of Link | Yes |
UserGroup
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | The unique identifier of the group |
name | string | Yes | The name of the group |
ouId | string (uuid) | Yes | The organization unit ID that the group belongs to |
UserListResponse
Type: object
UserGroupListResponse
Type: object
CreateUserByPathRequest
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
type | string | Yes | The handle of the user type |
attributes | object | User attributes |
CreateUserRequest
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
ouId | string (uuid) | Yes | The organization unit ID where the user will be created |
type | string | Yes | The handle of the user type |
attributes | object | User attributes |
UpdateUserRequest
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
ouId | string (uuid) | The organization unit ID where the user belongs | |
type | string | The handle of the user type | |
attributes | object | User attributes |
UpdateSelfUserRequest
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
attributes | object | Yes | User attributes |
UpdateUserCredentialsRequest
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
credentials | object | Yes | Credential key-value pairs to update. Keys must match credential fields defined in the user type schema. |
UserType
Type: object
11 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | The unique identifier of the user type |
handle | string | Yes | Unique handle of the user type (lowercase letters, numbers, hyphens, and underscores only). The handle is unique among user types. Once set, the handle cannot be changed. |
displayName | string | Yes | Human-readable name of the user type. It does not need to be unique and can be changed at any time. |
ouId | string (uuid) | Yes | The root organization unit ID associated with this user type schema |
ouHandle | string | Human-readable handle of the organization unit (only included when include=display query parameter is used). | |
allowSelfRegistration | boolean | Indicates whether users of this type can perform self-registration flows Default: | |
systemAttributes | object | System-level metadata for the user type | |
systemAttributes.display | string | The schema attribute to use as the human-readable display name for users of this type | |
systemAttributes.primaryEmail | string | Top-level email attribute used as the primary contact. Defaults to the only top-level email attribute; stays unset when there are several and none is selected. Must reference an email type. | |
systemAttributes.primaryMobile | string | Top-level mobile attribute used as the primary contact. Defaults to the only top-level mobile attribute; stays unset when there are several and none is selected. Must reference a mobile type. | |
schema | object | Yes | JSON Schema definition for the user type |
UserTypeListResponse
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | Number of results that match the listing operation. | |
startIndex | integer | Index of the first element of the page, which will be equal to offset + 1. | |
count | integer | Number of elements in the returned page. | |
types | array of object | ||
links | array of Link |
CreateUserTypeRequest
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Yes | Unique handle for the user type (lowercase letters, numbers, hyphens, and underscores only). The handle must be unique among user types. Once set, the handle cannot be changed. |
displayName | string | Yes | Human-readable name of the user type. It does not need to be unique. |
ouId | string (uuid) | Yes | The organization unit ID where this user type schema is applicable |
allowSelfRegistration | boolean | Whether the user type supports user-initiated registration Default: | |
systemAttributes | systemAttributes | System-level metadata for the user type | |
schema | object | Yes | JSON Schema definition for the user type |
UpdateUserTypeRequest
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
handle | string | Optional. The handle cannot be changed, so when provided it must match the handle the user type was created with. When omitted, the existing handle is kept. | |
displayName | string | Yes | Human-readable name of the user type. It does not need to be unique. |
ouId | string (uuid) | Yes | The root organization unit ID where this user type schema is applicable |
allowSelfRegistration | boolean | Whether the user type supports user-initiated registration Default: | |
systemAttributes | systemAttributes | System-level metadata for the user type | |
schema | object | Yes | JSON Schema definition for the user type |
UserSharingPolicyRequest
Type: any of: any, any
One organization unit's decision about this user. A policy states up to two
sections through this endpoint, and at least one: childUnits for the organization units
beneath the issuer, and otherTreeRoots for the roots of other trees. Each section either
reaches a whole group or names the organization units it reaches, never both.
A user shared with nobody has no policy at all.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
initiatingOuId | string | The organization unit whose decision this is. Omitted means the user's owner. A
unit other than the owner may only issue a policy where the user already reached
it and stopped there, and such a policy may state | |
childUnits | UserChildUnits | The organization units beneath the issuer. Exactly one of the two shapes below, chosen by
| |
otherTreeRoots | UserOtherTreeRootsSelected | Named root organization units of other trees, and nothing below them. Owner only. Another tree is reached at its root alone; that root passes the user on within its own tree. The root of the owner's own tree is not another tree and cannot be named. When the owner sits below a root, this additionally requires
| |
version | integer | The policy version the caller believes it is editing. Required on an edit, ignored on a create. |
UserSharingPolicyUpdateRequest
Type: any of: any, any, any
A replacement for a policy's sections. Whose decision the policy is cannot change, so an
edit names no initiatingOuId. It is held to the rules of a create, with these differences.
Each section keeps its kind. A section that reaches a whole group (mode: all, or
allUnits) stays one: its excludedOuIds can be added to or removed from, but the section
cannot be dropped or turned into one that names units. That is also how a policy that
already reaches every organization unit, or the root of every other tree, keeps that reach
here although a create may not state it. A section that names units may add or drop units,
change a unit's reach, or be removed, but cannot become one that reaches a whole group.
An edit cannot reach past an organization unit that has already shared the user on. Widening
that unit from unit to subtree is refused until the policy it issued is removed.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
allUnits | UserAllUnits | Every organization unit in the deployment, at any depth, including units created later. It
stands alone: a policy that states it states neither A reach not bounded by the issuer's own position in the tree is a deployment decision, so it is written where such decisions are reviewed: a resource file, or a document imported from one. A create through this API may not state it. A policy written that way still reads back through these endpoints, and an edit restates it to rewrite its exclusions. | |
childUnits | UserChildUnits | The organization units beneath the issuer. Exactly one of the two shapes below, chosen by
| |
otherTreeRoots | UserOtherTreeRoots | The root organization units of other trees, as a policy carries them. Every shape a create may send, plus the one that only a resource file or an imported document may introduce. An edit sends this shape rather than the create's, because a policy that already reaches the root of every other tree has to be able to restate that to rewrite its exclusions. | |
version | integer | Yes | The policy version the caller believes it is editing. An edit against any other version is refused, so a caller that has not seen the current one cannot overwrite it. |
UserAllUnits
Type: object
Every organization unit in the deployment, at any depth, including units created later. It
stands alone: a policy that states it states neither childUnits nor otherTreeRoots.
A reach not bounded by the issuer's own position in the tree is a deployment decision, so it is written where such decisions are reviewed: a resource file, or a document imported from one. A create through this API may not state it. A policy written that way still reads back through these endpoints, and an edit restates it to rewrite its exclusions.
1 property
| Name | Type | Required | Description |
|---|---|---|---|
excludedOuIds | array of string | Organization units withheld from the section, each taking everything beneath it out of reach as well. Any organization unit may be excluded. |
UserChildUnits
Type: one of: UserChildUnitsAll, UserChildUnitsSelected
The organization units beneath the issuer. Exactly one of the two shapes below, chosen by
mode.
UserChildUnitsAll
Type: object
Everything beneath the issuing organization unit, at any depth, including units created later.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
mode | string | Yes | Allowed values: |
excludedOuIds | array of string | Organization units withheld from the section, each taking everything beneath it out of reach as well. Only organization units directly beneath the issuer may be excluded. |
UserChildUnitsSelected
Type: object
Named organization units directly beneath the issuer. It takes no excludedOuIds: an
organization unit is withheld by leaving it out of units.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
mode | string | Yes | Allowed values: |
units | array of UserChildUnit | Yes | The organization units reached. An organization unit is listed only once in a policy. |
UserChildUnit
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
ouId | string | Yes | A direct child of the issuing organization unit. |
reach | string | Yes | How far the user carries from the named organization unit. Allowed values: |
overlayRules | UserOverlayRules | The terms the organization unit holds the user on. A user declares one field, |
UserOverlayRules
Type: object
The terms the organization unit holds the user on. A user declares one field, roles: the
roles the share mandates for the user in that organization unit. A rule is accepted only on
a unit named under childUnits in selected mode with reach: unit.
1 property
| Name | Type | Required | Description |
|---|---|---|---|
roles | UserRolesRule | The roles mandated for the user in the organization unit. Writing the share writes one mandated role assignment for each role, in that organization unit. Updating the share brings the assignments in line with the new list, and deleting the share removes them. The rule is fixed: Each role must be owned by, or shared with, the organization unit, and the caller must be allowed to grant it, by the same check as a direct assignment. A reshare from a mandated unit can carry only roles from its own mandate. |
UserRolesRule
Type: object
The roles mandated for the user in the organization unit. Writing the share writes one mandated role assignment for each role, in that organization unit. Updating the share brings the assignments in line with the new list, and deleting the share removes them.
The rule is fixed: editable is false and value lists at least one role ID.
Each role must be owned by, or shared with, the organization unit, and the caller must be allowed to grant it, by the same check as a direct assignment. A reshare from a mandated unit can carry only roles from its own mandate.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
editable | boolean | Yes | Allowed values: |
value | array of string | Yes | The IDs of the roles to mandate. |
UserOtherTreeRoots
Type: one of: UserOtherTreeRootsSelected, UserOtherTreeRootsAll
The root organization units of other trees, as a policy carries them. Every shape a create may send, plus the one that only a resource file or an imported document may introduce.
An edit sends this shape rather than the create's, because a policy that already reaches the root of every other tree has to be able to restate that to rewrite its exclusions.
UserOtherTreeRootsSelected
Type: object
Named root organization units of other trees, and nothing below them. Owner only. Another tree is reached at its root alone; that root passes the user on within its own tree. The root of the owner's own tree is not another tree and cannot be named.
When the owner sits below a root, this additionally requires
resource_sharing.allow_child_ou_cross_tree_sharing.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
mode | string | Yes | Allowed values: |
units | array of UserRootUnit | Yes | The root organization units reached. An organization unit is listed only once in a policy. |
UserOtherTreeRootsAll
Type: object
The root organization unit of every other tree, including trees created later. Only a resource file or an imported document may introduce it, so a create never sends it.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
mode | string | Yes | Allowed values: |
excludedOuIds | array of string | Root organization units withheld from the section, and with them their trees. |
UserRootUnit
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
ouId | string | Yes | The root organization unit of another tree. |
UserSharingPolicy
Type: object
A recorded sharing policy. Its sections come back in the shape a request states them in, so
an edit copies them, with version, into a UserSharingPolicyUpdateRequest. The other fields
are set by the server and are refused in a request body. A section the policy does not state
is left out.
9 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | The policy's own identifier. | |
initiatingOuId | string | The organization unit whose decision this policy is. The owning organization unit is not repeated here: it belongs to the user, which this path already names. | |
stage | string |
Allowed values: | |
parentPolicyId | string | The policy that made this one's issuer able to see the user. Empty for an owner-issued policy. | |
isReadOnly | boolean | Indicates if the policy is defined in declarative configuration and cannot be modified. | |
version | integer | Bumped on every edit, and carried back on the next one. | |
allUnits | UserAllUnits | Every organization unit in the deployment, at any depth, including units created later. It
stands alone: a policy that states it states neither A reach not bounded by the issuer's own position in the tree is a deployment decision, so it is written where such decisions are reviewed: a resource file, or a document imported from one. A create through this API may not state it. A policy written that way still reads back through these endpoints, and an edit restates it to rewrite its exclusions. | |
childUnits | UserChildUnits | The organization units beneath the issuer. Exactly one of the two shapes below, chosen by
| |
otherTreeRoots | UserOtherTreeRoots | The root organization units of other trees, as a policy carries them. Every shape a create may send, plus the one that only a resource file or an imported document may introduce. An edit sends this shape rather than the create's, because a policy that already reaches the root of every other tree has to be able to restate that to rewrite its exclusions. |
UserSharingPolicyListResponse
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | How many policies the user has, not how many this page holds. | |
startIndex | integer | The one-based position of the first policy in this page. | |
count | integer | How many policies this page holds. | |
policies | array of UserSharingPolicy | ||
links | array of Link | Links to the first, previous, next and last pages, where they exist. |
UserResolvedOverlay
Type: object
What one organization unit may do with the user.
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
ouId | string | ||
isOwnedByOU | boolean | Whether the organization unit owns the user rather than being shared it. | |
visible | boolean | Whether the organization unit can see the user at all. This is what decides whether it may be named as the accessing organization unit on a token request. | |
policyIds | array of string | Every policy that contributed, so an answer is traceable to its inputs. | |
rules | object | The effective rule per templated field: which of the user's fields the
organization unit may override, and on what terms. A user declares one field, |
UserOverlayRule
Type: object
What a reached organization unit may do with one field.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
editable | boolean | ||
value | array of string | ||
allowedValues | array of string | ||
excludedValues | array of string |
Error
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Error code. Codes follow the USR-XXXX convention. |
message | I18nMessage | Yes | Internationalized message with translation key and default value. |
description | I18nMessage | Internationalized message with translation key and default value. |
I18nMessage
Type: object
Internationalized message with translation key and default value.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Translation key for fetching localized message. |
defaultValue | string | Yes | Default message in English (fallback). |
Was this page helpful?