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.

OrganizationUnit Management API

Download OpenAPI (YAML)Version 1.0

Base URL: https://localhost:8090

Create and manage the organizational hierarchy. Organization units can be nested and are used to scope applications, users, groups, and policies.

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

Organization Units​

Create and manage organization units including member, group, and role assignments.

List root organization units​

GET /organization-units

Scopes: system

Parameters

NameInTypeRequiredDescription
limitqueryinteger

Maximum number of records to return.

Default: 30

offsetqueryinteger

Number of records to skip for pagination.

Default: 0

filterquerystring

Filter organization units by attribute values. Format: attribute operator "value". Join multiple conditions with AND or OR; AND takes precedence over OR. Filterable attributes: name, handle, description, createdAt, updatedAt. Supported operators:

  • eq - Equals. Case-insensitive for name, handle, and description.
  • sw - Starts with. Case-insensitive.
  • gt - Greater than. Use with createdAt or updatedAt in ISO 8601 format.
  • lt - Less than. Use with createdAt or updatedAt in ISO 8601 format. Examples:
  • name eq "Engineering" - Organization units named "Engineering"
  • handle sw "eng" - Organization units whose handle starts with "eng"
  • createdAt gt "2026-01-01T00:00:00Z" - Organization units created after 1 January 2026
  • name eq "Engineering" OR name eq "Sales" - Organization units named "Engineering" or "Sales"

Responses

CodeDescriptionSchema
200

List of root organization units

OrganizationUnitListResponse
400

Bad request

Error
500

Internal server error

Create a new organization unit​

POST /organization-units

Scopes: system

Request body (required): application/json

Schema: CreateOrganizationUnitRequest

16 properties
NameTypeRequiredDescription
parentstring (uuid)Yes
handlestringYes

The unique handle for the organization unit within its parent

namestringYes

The display name of the organization unit

descriptionstring

Optional description of the organization unit

themeIdstring (uuid)

Theme configuration ID for the organization unit

layoutIdstring (uuid)

Layout configuration ID for the organization unit

authFlowIdstring (uuid)

Default authentication flow ID for the organization unit

registrationFlowIdstring (uuid)

Default Registration flow ID for the organization unit

isRegistrationFlowEnabledboolean

Whether the registration flow is enabled for the organization unit

recoveryFlowIdstring (uuid)

Default Recovery flow ID for the organization unit

isRecoveryFlowEnabledboolean

Whether the recovery flow is enabled for the organization unit

signOutFlowIdstring (uuid)

Sign-out flow ID for the organization unit

logoUrlstring (uri)

Logo URL for the organization unit

tosUristring (uri)

Terms of Service URI

policyUristring (uri)

Privacy Policy URI

cookiePolicyUristring (uri)

Cookie Policy URI

Responses

CodeDescriptionSchema
201

Organization unit created

OrganizationUnit
400

Bad request

Error
409

Conflict: Organization unit already exists

Error
500

Internal server error

Get an organization unit by id​

GET /organization-units/{id}

Scopes: system

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Responses

CodeDescriptionSchema
200

Organization unit details

OrganizationUnit
404

Organization unit not found

Error
500

Internal server error

Update an organization unit by id​

PUT /organization-units/{id}

Scopes: system

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Request body (required): application/json

Schema: UpdateOrganizationUnitRequest

16 properties
NameTypeRequiredDescription
parentstring (uuid)Yes
handlestringYes

The unique handle for the organization unit within its parent

namestringYes

The display name of the organization unit

descriptionstring

Optional description of the organization unit

themeIdstring (uuid)

Theme configuration ID for the organization unit

layoutIdstring (uuid)

Layout configuration ID for the organization unit

authFlowIdstring (uuid)

Default authentication flow ID for the organization unit

registrationFlowIdstring (uuid)

Default Registration flow ID for the organization unit

isRegistrationFlowEnabledboolean

Whether the registration flow is enabled for the organization unit

recoveryFlowIdstring (uuid)

Default Recovery flow ID for the organization unit

isRecoveryFlowEnabledboolean

Whether the recovery flow is enabled for the organization unit

signOutFlowIdstring (uuid)

Sign-out flow ID for the organization unit

logoUrlstring (uri)

Logo URL for the organization unit

tosUristring (uri)

Terms of Service URI

policyUristring (uri)

Privacy Policy URI

cookiePolicyUristring (uri)

Cookie Policy URI

Responses

CodeDescriptionSchema
200

Organization unit updated

OrganizationUnit
400

Bad request

Error
404

Organization unit not found

Error
409

Conflict: Organization unit already exists

Error
500

Internal server error

Delete an organization unit by id​

DEL /organization-units/{id}

Scopes: system

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Responses

CodeDescriptionSchema
204

Organization unit deleted

400

Bad request

Error
404

Organization unit not found

Error
500

Internal server error

List child organization units​

GET /organization-units/{id}/ous

Scopes: system

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes
limitqueryinteger

Maximum number of records to return.

Default: 30

offsetqueryinteger

Number of records to skip for pagination.

Default: 0

filterquerystring

Filter organization units by attribute values. Format: attribute operator "value". Join multiple conditions with AND or OR; AND takes precedence over OR. Filterable attributes: name, handle, description, createdAt, updatedAt. Supported operators:

  • eq - Equals. Case-insensitive for name, handle, and description.
  • sw - Starts with. Case-insensitive.
  • gt - Greater than. Use with createdAt or updatedAt in ISO 8601 format.
  • lt - Less than. Use with createdAt or updatedAt in ISO 8601 format. Examples:
  • name eq "Engineering" - Organization units named "Engineering"
  • handle sw "eng" - Organization units whose handle starts with "eng"
  • createdAt gt "2026-01-01T00:00:00Z" - Organization units created after 1 January 2026
  • name eq "Engineering" OR name eq "Sales" - Organization units named "Engineering" or "Sales"

Responses

CodeDescriptionSchema
200

List of child organization units

OrganizationUnitListResponse
400

Bad request

Error
404

Organization unit not found

Error
500

Internal server error

List users in organization unit​

GET /organization-units/{id}/users

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
idpathstring (uuid)Yes
limitqueryinteger

Maximum number of records to return.

Default: 30

offsetqueryinteger

Number of records to skip for pagination.

Default: 0

includequerystring

Specifies additional information to include in the response. Supported values: display - includes a display name for each user, resolved from the schema-configured display attribute. Falls back to the user ID when no display attribute is configured or the value cannot be resolved.

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

List groups in organization unit​

GET /organization-units/{id}/groups

Scopes: system

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes
limitqueryinteger

Maximum number of records to return.

Default: 30

offsetqueryinteger

Number of records to skip for pagination.

Default: 0

Responses

CodeDescriptionSchema
200

List of groups in the organization unit

GroupListResponse
400

Bad request

Error
404

Organization unit not found

Error
500

Internal server error

List roles in organization unit​

GET /organization-units/{id}/roles

Lists the roles the organization unit owns, followed by the roles shared with it. Each listed role's isOwnedByOU field says which of the two it is. A shared role is read-only here.

Scopes: system

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes
limitqueryinteger

Maximum number of records to return.

Default: 30

offsetqueryinteger

Number of records to skip for pagination.

Default: 0

Responses

CodeDescriptionSchema
200

List of roles in the organization unit

RoleListResponse
400

Bad request

Error
404

Organization unit not found

Error
500

Internal server error

organization-units-by-path​

Create, retrieve, update, delete, and list organization units using their hierarchical handle path.

Get an organization unit by hierarchical handle path​

GET /organization-units/tree/{path}

Scopes: system

Parameters

NameInTypeRequiredDescription
pathpathstringYes

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

  • engineering - Gets the root OU with handle "engineering"
  • engineering/frontend - Gets the "frontend" OU under "engineering"
  • engineering/frontend/ui - Gets the "ui" OU under "engineering/frontend"

Responses

CodeDescriptionSchema
200

Organization unit details

OrganizationUnit
404

Organization unit not found

Error
500

Internal server error

Update an organization unit by hierarchical handle path​

PUT /organization-units/tree/{path}

Scopes: system

Parameters

NameInTypeRequiredDescription
pathpathstringYes

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

  • engineering - Updates the root OU with handle "engineering"
  • engineering/frontend - Updates the "frontend" OU under "engineering"
  • engineering/frontend/ui - Updates the "ui" OU under "engineering/frontend"

Request body (required): application/json

Schema: UpdateOrganizationUnitByHandleRequest

15 properties
NameTypeRequiredDescription
namestringYes

The display name of the organization unit

handlestringYes

The unique handle for the organization unit within its parent

descriptionstring

Optional description of the organization unit

themeIdstring (uuid)

Theme configuration ID for the organization unit

layoutIdstring (uuid)

Layout configuration ID for the organization unit

authFlowIdstring (uuid)

Default authentication flow ID for the organization unit

registrationFlowIdstring (uuid)

Default Registration flow ID for the organization unit

isRegistrationFlowEnabledboolean

Whether the registration flow is enabled for the organization unit

recoveryFlowIdstring (uuid)

Recovery flow ID for the organization unit

isRecoveryFlowEnabledboolean

Whether the recovery flow is enabled for the organization unit

signOutFlowIdstring (uuid)

Default Sign-out flow ID for the organization unit

logoUrlstring (uri)

Logo URL for the organization unit

tosUristring (uri)

Terms of Service URI

policyUristring (uri)

Privacy Policy URI

cookiePolicyUristring (uri)

Cookie Policy URI

Responses

CodeDescriptionSchema
200

Organization unit updated

OrganizationUnit
400

Bad request

Error
404

Organization unit not found

Error
409

Conflict: Organization unit already exists

Error
500

Internal server error

Delete an organization unit by hierarchical handle path​

DEL /organization-units/tree/{path}

Scopes: system

Parameters

NameInTypeRequiredDescription
pathpathstringYes

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

  • engineering - Deletes the root OU with handle "engineering"
  • engineering/frontend - Deletes the "frontend" OU under "engineering"
  • engineering/frontend/ui - Deletes the "ui" OU under "engineering/frontend"

Responses

CodeDescriptionSchema
204

Organization unit deleted

400

Bad request

Error
404

Organization unit not found

Error
500

Internal server error

List child organization units by handle path​

GET /organization-units/tree/{path}/ous

Scopes: system

Parameters

NameInTypeRequiredDescription
pathpathstringYes

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

  • engineering - Lists children of the "engineering" OU
  • engineering/frontend - Lists children of "engineering/frontend"
limitqueryinteger

Maximum number of records to return.

Default: 30

offsetqueryinteger

Number of records to skip for pagination.

Default: 0

filterquerystring

Filter organization units by attribute values. Format: attribute operator "value". Join multiple conditions with AND or OR; AND takes precedence over OR. Filterable attributes: name, handle, description, createdAt, updatedAt. Supported operators:

  • eq - Equals. Case-insensitive for name, handle, and description.
  • sw - Starts with. Case-insensitive.
  • gt - Greater than. Use with createdAt or updatedAt in ISO 8601 format.
  • lt - Less than. Use with createdAt or updatedAt in ISO 8601 format. Examples:
  • name eq "Engineering" - Organization units named "Engineering"
  • handle sw "eng" - Organization units whose handle starts with "eng"
  • createdAt gt "2026-01-01T00:00:00Z" - Organization units created after 1 January 2026
  • name eq "Engineering" OR name eq "Sales" - Organization units named "Engineering" or "Sales"

Responses

CodeDescriptionSchema
200

List of child organization units

OrganizationUnitListResponse
400

Bad request

Error
404

Organization unit not found

Error
500

Internal server error

List users in organization unit by handle path​

GET /organization-units/tree/{path}/users

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.

Default: 30

offsetqueryinteger

Number of records to skip for pagination.

Default: 0

includequerystring

Specifies additional information to include in the response. Supported values: display - includes a display name for each user, resolved from the schema-configured display attribute. Falls back to the user ID when no display attribute is configured or the value cannot be resolved.

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

List groups in organization unit by handle path​

GET /organization-units/tree/{path}/groups

Scopes: system

Parameters

NameInTypeRequiredDescription
pathpathstringYes

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

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

Maximum number of records to return.

Default: 30

offsetqueryinteger

Number of records to skip for pagination.

Default: 0

Responses

CodeDescriptionSchema
200

List of groups in the organization unit

GroupListResponse
400

Bad request

Error
404

Organization unit not found

Error
500

Internal server error

List roles in organization unit by handle path​

GET /organization-units/tree/{path}/roles

Lists the roles the organization unit owns, followed by the roles shared with it. Each listed role'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 roles in the "engineering" OU
  • engineering/frontend - Lists roles in "engineering/frontend"
limitqueryinteger

Maximum number of records to return.

Default: 30

offsetqueryinteger

Number of records to skip for pagination.

Default: 0

Responses

CodeDescriptionSchema
200

List of roles in the organization unit

RoleListResponse
400

Bad request

Error
404

Organization unit not found

Error
500

Internal server error

Schemas​

OrganizationUnitBasic​

Type: object

8 properties
NameTypeRequiredDescription
idstring (uuid)Yes
handlestringYes
namestringYes
descriptionstring
logoUrlstring (uri)

Logo URL for the organization unit

isReadOnlybooleanYes

Whether the organization unit is immutable by clients.

createdAtstring (date-time)Yes

Creation timestamp in UTC.

updatedAtstring (date-time)Yes

Last update timestamp in UTC.

OrganizationUnit​

Type: object

19 properties
NameTypeRequiredDescription
idstring (uuid)Yes
handlestringYes
namestringYes
descriptionstring
parentstring (uuid)
themeIdstring (uuid)

Theme configuration ID for the organization unit

layoutIdstring (uuid)

Layout configuration ID for the organization unit

authFlowIdstring (uuid)

Default authentication flow ID for the organization unit

registrationFlowIdstring (uuid)

Default Registration flow ID for the organization unit

isRegistrationFlowEnabledboolean

Whether the registration flow is enabled for the organization unit

recoveryFlowIdstring (uuid)

Default Recovery flow ID for the organization unit

isRecoveryFlowEnabledboolean

Whether the recovery flow is enabled for the organization unit

signOutFlowIdstring (uuid)

Default Sign-out flow ID for the organization unit

logoUrlstring (uri)

Logo URL for the organization unit

tosUristring (uri)

Terms of Service URI

policyUristring (uri)

Privacy Policy URI

cookiePolicyUristring (uri)

Cookie Policy URI

createdAtstring (date-time)Yes

Creation timestamp in UTC.

updatedAtstring (date-time)Yes

Last update timestamp in UTC.

User​

Type: object

4 properties
NameTypeRequiredDescription
idstring (uuid)Yes
typestring

Handle of the user type

displaystring

Display name of the user, resolved from the schema-configured display attribute. Falls back to the user ID when no display attribute is configured or the value cannot be resolved. Only included when include=display is specified.

isOwnedByOUboolean

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

Group​

Type: object

2 properties
NameTypeRequiredDescription
idstring (uuid)Yes
namestringYes

Role​

Type: object

5 properties
NameTypeRequiredDescription
idstring (uuid)Yes
namestringYes
descriptionstring
isReadOnlyboolean

Whether the role is read-only here: declarative, or shared with the organization unit.

isOwnedByOUboolean

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

Type: object

2 properties
NameTypeRequiredDescription
hrefstring
relstring

CreateOrganizationUnitByHandleRequest​

Type: object

15 properties
NameTypeRequiredDescription
handlestringYes

The unique handle for the organization unit within its parent

namestringYes

The display name of the organization unit

descriptionstring

Optional description of the organization unit

themeIdstring (uuid)

Theme configuration ID for the organization unit

layoutIdstring (uuid)

Layout configuration ID for the organization unit

authFlowIdstring (uuid)

Default authentication flow ID for the organization unit

registrationFlowIdstring (uuid)

Default Registration flow ID for the organization unit

isRegistrationFlowEnabledboolean

Whether the registration flow is enabled for the organization unit

recoveryFlowIdstring (uuid)

Default Recovery flow ID for the organization unit

isRecoveryFlowEnabledboolean

Whether the recovery flow is enabled for the organization unit

signOutFlowIdstring (uuid)

Sign-out flow ID for the organization unit

logoUrlstring (uri)

Logo URL for the organization unit

tosUristring (uri)

Terms of Service URI

policyUristring (uri)

Privacy Policy URI

cookiePolicyUristring (uri)

Cookie Policy URI

UpdateOrganizationUnitByHandleRequest​

Type: object

15 properties
NameTypeRequiredDescription
namestringYes

The display name of the organization unit

handlestringYes

The unique handle for the organization unit within its parent

descriptionstring

Optional description of the organization unit

themeIdstring (uuid)

Theme configuration ID for the organization unit

layoutIdstring (uuid)

Layout configuration ID for the organization unit

authFlowIdstring (uuid)

Default authentication flow ID for the organization unit

registrationFlowIdstring (uuid)

Default Registration flow ID for the organization unit

isRegistrationFlowEnabledboolean

Whether the registration flow is enabled for the organization unit

recoveryFlowIdstring (uuid)

Recovery flow ID for the organization unit

isRecoveryFlowEnabledboolean

Whether the recovery flow is enabled for the organization unit

signOutFlowIdstring (uuid)

Default Sign-out flow ID for the organization unit

logoUrlstring (uri)

Logo URL for the organization unit

tosUristring (uri)

Terms of Service URI

policyUristring (uri)

Privacy Policy URI

cookiePolicyUristring (uri)

Cookie Policy URI

CreateOrganizationUnitRequest​

Type: CreateOrganizationUnitByHandleRequest

16 properties
NameTypeRequiredDescription
parentstring (uuid)Yes
handlestringYes

The unique handle for the organization unit within its parent

namestringYes

The display name of the organization unit

descriptionstring

Optional description of the organization unit

themeIdstring (uuid)

Theme configuration ID for the organization unit

layoutIdstring (uuid)

Layout configuration ID for the organization unit

authFlowIdstring (uuid)

Default authentication flow ID for the organization unit

registrationFlowIdstring (uuid)

Default Registration flow ID for the organization unit

isRegistrationFlowEnabledboolean

Whether the registration flow is enabled for the organization unit

recoveryFlowIdstring (uuid)

Default Recovery flow ID for the organization unit

isRecoveryFlowEnabledboolean

Whether the recovery flow is enabled for the organization unit

signOutFlowIdstring (uuid)

Sign-out flow ID for the organization unit

logoUrlstring (uri)

Logo URL for the organization unit

tosUristring (uri)

Terms of Service URI

policyUristring (uri)

Privacy Policy URI

cookiePolicyUristring (uri)

Cookie Policy URI

UpdateOrganizationUnitRequest​

Type: CreateOrganizationUnitRequest

16 properties
NameTypeRequiredDescription
parentstring (uuid)Yes
handlestringYes

The unique handle for the organization unit within its parent

namestringYes

The display name of the organization unit

descriptionstring

Optional description of the organization unit

themeIdstring (uuid)

Theme configuration ID for the organization unit

layoutIdstring (uuid)

Layout configuration ID for the organization unit

authFlowIdstring (uuid)

Default authentication flow ID for the organization unit

registrationFlowIdstring (uuid)

Default Registration flow ID for the organization unit

isRegistrationFlowEnabledboolean

Whether the registration flow is enabled for the organization unit

recoveryFlowIdstring (uuid)

Default Recovery flow ID for the organization unit

isRecoveryFlowEnabledboolean

Whether the recovery flow is enabled for the organization unit

signOutFlowIdstring (uuid)

Sign-out flow ID for the organization unit

logoUrlstring (uri)

Logo URL for the organization unit

tosUristring (uri)

Terms of Service URI

policyUristring (uri)

Privacy Policy URI

cookiePolicyUristring (uri)

Cookie Policy URI

OrganizationUnitListResponse​

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.

organizationUnitsarray of OrganizationUnitBasic
linksarray of Link

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

GroupListResponse​

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 Group
linksarray of Link

RoleListResponse​

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.

rolesarray of Role
linksarray of Link

Error​

Type: object

3 properties
NameTypeRequiredDescription
codestringYes

Error code. Codes follow the OU-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?