Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

User Management API

Download OpenAPI (YAML)Version 1.0

Base URL: https://localhost:8090

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
ScopeDescription
systemAccess to system management APIs

clientCredentials flow, token URL https://localhost:8090/oauth2/token

1 scopes
ScopeDescription
systemAccess 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

NameInTypeRequiredDescription
limitqueryinteger

Maximum number of records to return. Must be between 1 and 100 inclusive.

Default: 30

offsetqueryinteger

Number of records to skip for pagination. Must be a non-negative integer.

Default: 0

filterquerystring

Filter users by attribute values. Supported operators: eq (ie. equals). Format: attribute operator "value". Examples:

  • username eq "john.doe" - Users with username = "john.doe"'
  • age eq 25 - Users with age = 25
  • address.city eq "Mountain View" - Users with address.city = "Mountain View"
  • ouId eq "456e8400-e29b-41d4-a716-446655440001" - Users the organization unit owns, followed by the users shared into it.
includequerystring

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: display

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
ouIdstring (uuid)Yes

The organization unit ID where the user will be created

typestringYes

The handle of the user type

attributesobject

User attributes

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstring (uuid)Yes
ouIdquerystring (uuid)

The organization unit to read the user in.

includequerystring

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: display

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Request body (required): application/json

Schema: UpdateUserRequest

3 properties
NameTypeRequiredDescription
ouIdstring (uuid)

The organization unit ID where the user belongs

typestring

The handle of the user type

attributesobject

User attributes

Responses

CodeDescriptionSchema
200

User updated, with its status

User
400

Bad request

Error
404

User not found

Error
409

Conflict

Error
500

Internal server error

Delete a user by id​

DEL /users/{id}

Scopes: system

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Responses

CodeDescriptionSchema
204

User deleted

400

Bad request

Error
404

User not found

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

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Request body (required): application/json

Schema: UpdateUserCredentialsRequest

1 property
NameTypeRequiredDescription
credentialsobjectYes

Credential key-value pairs to update. Keys must match credential fields defined in the user type schema.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstring (uuid)Yes

The unique identifier of the user

limitqueryinteger

Maximum number of records to return. Must be between 1 and 100 inclusive.

Default: 30

offsetqueryinteger

Number of records to skip for pagination. Must be a non-negative integer.

Default: 0

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstring (uuid)Yes

The unique identifier of the user

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
pathpathstringYes

Hierarchical path of organization unit handles separated by forward slashes. Examples:

  • engineering - Lists users in the "engineering" OU
  • engineering/frontend - Lists users in "engineering/frontend"
limitqueryinteger

Maximum number of records to return. Must be between 1 and 100 inclusive.

Default: 30

offsetqueryinteger

Number of records to skip for pagination. Must be a non-negative integer.

Default: 0

includequerystring

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: display

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
pathpathstringYes

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:

  • engineering - Creates a new user under the "engineering" OU
  • engineering/frontend - Creates a new user under "engineering/frontend"

Request body (required): application/json

Schema: CreateUserByPathRequest

2 properties
NameTypeRequiredDescription
typestringYes

The handle of the user type

attributesobject

User attributes

Responses

CodeDescriptionSchema
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.

Get self user profile​

GET /users/me

Responses

CodeDescriptionSchema
200

User details

User
401

Unauthorized - missing or invalid authentication token

Error
404

Authenticated user not found

Error
500

Internal server error

Error

Update self user profile​

PUT /users/me

Request body (required): application/json

Schema: UpdateSelfUserRequest

1 property
NameTypeRequiredDescription
attributesobjectYes

User attributes

Responses

CodeDescriptionSchema
200

User updated, with its status

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

Get self user schema metadata​

GET /users/me/meta

Responses

CodeDescriptionSchema
200

Schema metadata for the caller's user type

object
400

User type schema missing or not found

Error
401

Unauthorized - missing or invalid authentication token

Error
404

User not found

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

NameInTypeRequiredDescription
scopequerystring

Narrows the list, relative to current. When omitted, every accessible organization unit is listed.

  • siblings: current and the accessible units that share its parent. The parent itself is not listed. When current is a top-level unit, its siblings are the other accessible top-level units.

Allowed values: siblings

limitqueryinteger

Maximum number of records to return. Must be between 1 and 100 inclusive.

Default: 30

offsetqueryinteger

Number of records to skip for pagination. Must be a non-negative integer.

Default: 0

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
attributesobjectYes

User attributes

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
limitqueryinteger

Maximum number of records to return. Must be between 1 and 100 inclusive.

Default: 30

offsetqueryinteger

Number of records to skip for pagination. Must be a non-negative integer.

Default: 0

includequerystring

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: display

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
handlestringYes

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.

displayNamestringYes

Human-readable name of the user type. It does not need to be unique.

ouIdstring (uuid)Yes

The organization unit ID where this user type schema is applicable

allowSelfRegistrationboolean

Whether the user type supports user-initiated registration

Default: false

systemAttributessystemAttributes

System-level metadata for the user type

schemaobjectYes

JSON Schema definition for the user type

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstring (uuid)Yes
includequerystring

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: display

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Request body (required): application/json

Schema: UpdateUserTypeRequest

6 properties
NameTypeRequiredDescription
handlestring

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.

displayNamestringYes

Human-readable name of the user type. It does not need to be unique.

ouIdstring (uuid)Yes

The root organization unit ID where this user type schema is applicable

allowSelfRegistrationboolean

Whether the user type supports user-initiated registration

Default: false

systemAttributessystemAttributes

System-level metadata for the user type

schemaobjectYes

JSON Schema definition for the user type

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstring (uuid)Yes

User ID

limitqueryinteger

Maximum number of records to return. Must be between 1 and 100 inclusive.

Default: 30

offsetqueryinteger

Number of records to skip for pagination. Must be a non-negative integer.

Default: 0

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstring (uuid)Yes

User ID

Request body (required): application/json

Schema: UserSharingPolicyRequest

4 properties
NameTypeRequiredDescription
initiatingOuIdstring

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 only.

childUnitsUserChildUnits

The organization units beneath the issuer. Exactly one of the two shapes below, chosen by mode.

otherTreeRootsUserOtherTreeRootsSelected

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.

versioninteger

The policy version the caller believes it is editing. Required on an edit, ignored on a create.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstring (uuid)Yes

User ID

policyIdpathstringYes

Sharing policy ID

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstring (uuid)Yes

User ID

policyIdpathstringYes

Sharing policy ID

Request body (required): application/json

Schema: UserSharingPolicyUpdateRequest

4 properties
NameTypeRequiredDescription
allUnitsUserAllUnits

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.

childUnitsUserChildUnits

The organization units beneath the issuer. Exactly one of the two shapes below, chosen by mode.

otherTreeRootsUserOtherTreeRoots

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.

versionintegerYes

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

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstring (uuid)Yes

User ID

policyIdpathstringYes

Sharing policy ID

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstring (uuid)Yes

User ID

ouIdquerystringYes

The organization unit to resolve for.

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
resourceTypestringYes

Type of the referencing resource.

Allowed values: application, agent

idstring (uuid)Yes

Identifier of the referencing resource.

displayNamestringYes

Human-readable name of the referencing resource.

behaviorOnDeletestringYes

What happens to this resource when the target resource is deleted.

  • fallback: the reference is kept as-is.
  • cascade: the resource is permanently deleted.

Allowed values: fallback, cascade

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
NameTypeRequiredDescription
totalResultsinteger

Total number of resources that reference the target resource. Null when usage data is unavailable; 0 means confirmed empty.

countinteger

Number of results returned.

summaryResourceUsagesSummary

Per-resource-type count of usages, keyed by resource type (e.g. agent). Null when the counts could not be determined.

usagesarray of ResourceUsage

User​

Type: object

11 properties
NameTypeRequiredDescription
idstring (uuid)Yes
ouIdstring (uuid)
ouHandlestring

Human-readable handle of the organization unit (only included when include=display query parameter is used).

typestring
verifiedAttributesobject

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.

attributesobject
displaystring

Display name of the user (only included when include=display query parameter is used). Resolved from the schema-configured display attribute (systemAttributes.display). Falls back to the user ID if no display attribute is configured, the configured attribute path does not exist in the user's data, or the attribute value is empty.

isReadOnlyboolean

Whether the user is declarative and cannot be modified or deleted by clients.

isOwnedByOUboolean

Whether the listed organization unit owns the user rather than being shared it. Present in user lists, and when a user is read with ouId.

statusUserAccessStatus

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.

lastLoginAtstring (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 accountAccess.user.recordLastLogin is enabled, and the value can lag the latest sign-in by up to accountAccess.user.lastLoginResolutionSeconds (one hour by default). Use it to find inactive accounts, not to audit individual sign-ins.

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
NameTypeRequiredDescription
valuestring

ACTIVE, LOCKED or SUSPENDED. When the user is both suspended and locked, SUSPENDED is reported.

SUSPENDED is an administrative hold placed by the suspend flow. While suspended, the user cannot authenticate, use existing sessions, get new or refreshed tokens, or recover the account, but the record can still be updated. The unsuspend flow removes the suspension and leaves the user LOCKED until self-service recovery or the unlock flow clears the lock.

LOCKED is a hold after repeated failed sign-ins or after a suspension is released. The suspension release lock does not expire, even when automatic locking is disabled. An automatic lock does not expire when its duration is 0 or it forms at maxConsecutiveFailures; other automatic locks expire on their own. Self-service recovery with an unlock step or the administration unlock flow clears a lock earlier.

Allowed values: ACTIVE, LOCKED, SUSPENDED

detailsobject

Why the status applies and how it is cleared. Absent for ACTIVE.

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.reasonstring

What caused the status. FAILED_ATTEMPTS is an automatic lock after repeated failed sign-ins. SUSPENSION_RELEASE_LOCK is the account-wide lock the unsuspend flow leaves, which does not expire. ADMINISTRATIVE_SUSPENSION is a suspension placed by an operator.

One reason covers every entry in lockedMethods. A suspension release lock is never reported together with authentication method locks.

Allowed values: FAILED_ATTEMPTS, SUSPENSION_RELEASE_LOCK, ADMINISTRATIVE_SUSPENSION

details.sincestring (date-time)

When the operator placed the hold. Absent for an automatic lock.

details.operatorNotestring

The note the operator entered when placing the hold. Absent when none was entered. Never included in an authentication refusal or in /users/me responses.

details.lockedMethodsarray of object

The automatic locks currently in force, in a stable order. Absent unless the status is LOCKED.

With lockGranularity set to authentication_method, each method locks separately, so several entries can be present, each with its own expiry. An account-wide lock is reported as a single entry with the method account.

AccessibleOrganizationUnit​

Type: object

4 properties
NameTypeRequiredDescription
idstring (uuid)Yes
handlestringYes
namestringYes
logoUrlstring (uri)

AccessibleOrganizationUnitListResponse​

Type: object

6 properties
NameTypeRequiredDescription
currentstring (uuid)Yes

The organization unit the list is relative to.

totalResultsintegerYes

Number of results that match the listing operation.

startIndexintegerYes

Index of the first element of the page, which will be equal to offset + 1.

countintegerYes

Number of elements in the returned page.

organizationUnitsarray of AccessibleOrganizationUnitYes
linksarray of LinkYes

Type: object

2 properties
NameTypeRequiredDescription
hrefstring
relstring

UserGroup​

Type: object

3 properties
NameTypeRequiredDescription
idstring (uuid)Yes

The unique identifier of the group

namestringYes

The name of the group

ouIdstring (uuid)Yes

The organization unit ID that the group belongs to

UserListResponse​

Type: object

5 properties
NameTypeRequiredDescription
totalResultsinteger

Number of results that match the listing operation.

startIndexinteger

Index of the first element of the page, which will be equal to offset + 1.

countinteger

Number of elements in the returned page.

usersarray of User
linksarray of Link

UserGroupListResponse​

Type: object

5 properties
NameTypeRequiredDescription
totalResultsinteger

Number of results that match the listing operation.

startIndexinteger

Index of the first element of the page, which will be equal to offset + 1.

countinteger

Number of elements in the returned page.

groupsarray of UserGroup
linksarray of Link

CreateUserByPathRequest​

Type: object

2 properties
NameTypeRequiredDescription
typestringYes

The handle of the user type

attributesobject

User attributes

CreateUserRequest​

Type: object

3 properties
NameTypeRequiredDescription
ouIdstring (uuid)Yes

The organization unit ID where the user will be created

typestringYes

The handle of the user type

attributesobject

User attributes

UpdateUserRequest​

Type: object

3 properties
NameTypeRequiredDescription
ouIdstring (uuid)

The organization unit ID where the user belongs

typestring

The handle of the user type

attributesobject

User attributes

UpdateSelfUserRequest​

Type: object

1 property
NameTypeRequiredDescription
attributesobjectYes

User attributes

UpdateUserCredentialsRequest​

Type: object

1 property
NameTypeRequiredDescription
credentialsobjectYes

Credential key-value pairs to update. Keys must match credential fields defined in the user type schema.

UserType​

Type: object

11 properties
NameTypeRequiredDescription
idstring (uuid)Yes

The unique identifier of the user type

handlestringYes

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.

displayNamestringYes

Human-readable name of the user type. It does not need to be unique and can be changed at any time.

ouIdstring (uuid)Yes

The root organization unit ID associated with this user type schema

ouHandlestring

Human-readable handle of the organization unit (only included when include=display query parameter is used).

allowSelfRegistrationboolean

Indicates whether users of this type can perform self-registration flows

Default: false

systemAttributesobject

System-level metadata for the user type

systemAttributes.displaystring

The schema attribute to use as the human-readable display name for users of this type

systemAttributes.primaryEmailstring

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.primaryMobilestring

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.

schemaobjectYes

JSON Schema definition for the user type

UserTypeListResponse​

Type: object

5 properties
NameTypeRequiredDescription
totalResultsinteger

Number of results that match the listing operation.

startIndexinteger

Index of the first element of the page, which will be equal to offset + 1.

countinteger

Number of elements in the returned page.

typesarray of object
linksarray of Link

CreateUserTypeRequest​

Type: object

6 properties
NameTypeRequiredDescription
handlestringYes

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.

displayNamestringYes

Human-readable name of the user type. It does not need to be unique.

ouIdstring (uuid)Yes

The organization unit ID where this user type schema is applicable

allowSelfRegistrationboolean

Whether the user type supports user-initiated registration

Default: false

systemAttributessystemAttributes

System-level metadata for the user type

schemaobjectYes

JSON Schema definition for the user type

UpdateUserTypeRequest​

Type: object

6 properties
NameTypeRequiredDescription
handlestring

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.

displayNamestringYes

Human-readable name of the user type. It does not need to be unique.

ouIdstring (uuid)Yes

The root organization unit ID where this user type schema is applicable

allowSelfRegistrationboolean

Whether the user type supports user-initiated registration

Default: false

systemAttributessystemAttributes

System-level metadata for the user type

schemaobjectYes

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
NameTypeRequiredDescription
initiatingOuIdstring

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 only.

childUnitsUserChildUnits

The organization units beneath the issuer. Exactly one of the two shapes below, chosen by mode.

otherTreeRootsUserOtherTreeRootsSelected

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.

versioninteger

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
NameTypeRequiredDescription
allUnitsUserAllUnits

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.

childUnitsUserChildUnits

The organization units beneath the issuer. Exactly one of the two shapes below, chosen by mode.

otherTreeRootsUserOtherTreeRoots

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.

versionintegerYes

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
NameTypeRequiredDescription
excludedOuIdsarray 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
NameTypeRequiredDescription
modestringYes

Allowed values: all

excludedOuIdsarray 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
NameTypeRequiredDescription
modestringYes

Allowed values: selected

unitsarray of UserChildUnitYes

The organization units reached. An organization unit is listed only once in a policy.

UserChildUnit​

Type: object

3 properties
NameTypeRequiredDescription
ouIdstringYes

A direct child of the issuing organization unit.

reachstringYes

How far the user carries from the named organization unit. unit reaches it and nothing below it, which leaves it free to pass the user on itself. subtree reaches it and everything below it at any depth.

Allowed values: unit, subtree

overlayRulesUserOverlayRules

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.

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
NameTypeRequiredDescription
rolesUserRolesRule

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.

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
NameTypeRequiredDescription
editablebooleanYes

Allowed values: false

valuearray of stringYes

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
NameTypeRequiredDescription
modestringYes

Allowed values: selected

unitsarray of UserRootUnitYes

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
NameTypeRequiredDescription
modestringYes

Allowed values: all

excludedOuIdsarray of string

Root organization units withheld from the section, and with them their trees.

UserRootUnit​

Type: object

1 property
NameTypeRequiredDescription
ouIdstringYes

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
NameTypeRequiredDescription
idstring

The policy's own identifier.

initiatingOuIdstring

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.

stagestring

share when the owner issued it, reshare when a sharee did.

Allowed values: share, reshare

parentPolicyIdstring

The policy that made this one's issuer able to see the user. Empty for an owner-issued policy.

isReadOnlyboolean

Indicates if the policy is defined in declarative configuration and cannot be modified.

versioninteger

Bumped on every edit, and carried back on the next one.

allUnitsUserAllUnits

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.

childUnitsUserChildUnits

The organization units beneath the issuer. Exactly one of the two shapes below, chosen by mode.

otherTreeRootsUserOtherTreeRoots

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
NameTypeRequiredDescription
totalResultsinteger

How many policies the user has, not how many this page holds.

startIndexinteger

The one-based position of the first policy in this page.

countinteger

How many policies this page holds.

policiesarray of UserSharingPolicy
linksarray 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
NameTypeRequiredDescription
ouIdstring
isOwnedByOUboolean

Whether the organization unit owns the user rather than being shared it.

visibleboolean

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.

policyIdsarray of string

Every policy that contributed, so an answer is traceable to its inputs.

rulesobject

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, roles, which is present when a user share mandates roles in the organization unit and is otherwise left out, so the map is empty for most organization units.

UserOverlayRule​

Type: object

What a reached organization unit may do with one field.

4 properties
NameTypeRequiredDescription
editableboolean
valuearray of string
allowedValuesarray of string
excludedValuesarray of string

Error​

Type: object

3 properties
NameTypeRequiredDescription
codestringYes

Error code. Codes follow the USR-XXXX convention.

messageI18nMessageYes

Internationalized message with translation key and default value.

descriptionI18nMessage

Internationalized message with translation key and default value.

I18nMessage​

Type: object

Internationalized message with translation key and default value.

2 properties
NameTypeRequiredDescription
keystringYes

Translation key for fetching localized message.

defaultValuestringYes

Default message in English (fallback).

Was this page helpful?