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.

Group Management API

Download OpenAPI (YAML)Version 1.0

Base URL: https://localhost:8090

Create and manage groups for organizing users. Groups can be assigned roles and permissions and are used as the primary unit for access control delegation.

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

Groups​

CRUD operations for groups, member assignment, and role assignment.

List groups​

GET /groups

Retrieve a list of groups. An ouId filter lists the groups the organization unit owns.

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 groups by organization unit. The only supported expression is ouId eq "<id>", which lists the groups the organization unit owns. A caller that cannot list the organization unit's groups gets an empty list.

includequerystring

Optional parameter to include additional display information.

  • display - Include ouHandle, the human-readable handle of the organization unit, alongside the ouId.

Allowed values: display

Responses

CodeDescriptionSchema
200

List of groups

GroupListResponse
400

Bad request

Error
500

Internal server error

string

Create a new group​

POST /groups

Scopes: system

Request body (required): application/json

Schema: CreateGroupRequest

4 properties
NameTypeRequiredDescription
namestringYes
descriptionstring
ouIdstring (uuid)Yes
membersarray of Member

Members of the group. Every member must be owned by the organization unit given in ouId or shared with it.

Responses

CodeDescriptionSchema
201

Group created

Group
400

Bad request

Error
409

Conflict

Error
500

Internal server error

string

Get a group by id​

GET /groups/{id}

Scopes: system

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes
includequerystring

Optional parameter to include additional display information.

  • display - Include ouHandle, the human-readable handle of the organization unit, alongside the ouId.

Allowed values: display

Responses

CodeDescriptionSchema
200

Group details

Group
400

Bad request

Error
404

Group not found

Error
500

Internal server error

string

Update a group by id​

PUT /groups/{id}

Updates a group's name, description, and organization unit. A group can be moved to another organization unit only when it has no members, no other group contains it, and it is assigned no roles.

Scopes: system

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Request body (required): application/json

Schema: UpdateGroupRequest

3 properties
NameTypeRequiredDescription
namestringYes
descriptionstring
ouIdstring (uuid)Yes

Responses

CodeDescriptionSchema
200

Group updated

Group
400

Bad request

Error
404

Group not found

Error
409

Conflict

Error
500

Internal server error

string

Delete a group by id​

DEL /groups/{id}

Deletes a group using its ID. Its role assignments and its memberships in other groups are automatically removed by cascade. The delete is fail-closed and retriable: if dependency cleanup fails, the group is left intact and the operation can be retried.

Scopes: system

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Responses

CodeDescriptionSchema
204

Group deleted

400

Bad request

Error
404

Group not found

Error
500

Internal server error

string

List members in group​

GET /groups/{id}/members

Scopes: system

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes
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 information.

  • display - Include display names for members. For users, the display value is 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. For groups, the group name is used.

Allowed values: display

Responses

CodeDescriptionSchema
200

List of members in the group

MemberListResponse
400

Bad request

Error
404

Group not found

Error
500

Internal server error

string

Add members to a group​

POST /groups/{id}/members/add

Adds members to a group. Every member must be owned by the group's organization unit or shared with it. Only users and applications can be shared.

Scopes: system

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Request body (required): application/json

Schema: MembersRequest

1 property
NameTypeRequiredDescription
membersarray of MemberYes

List of members to add or remove

Responses

CodeDescriptionSchema
200

Members added successfully

Group
400

Bad request

Error
403

Forbidden

Error
404

Group not found

Error
500

Internal server error

string

Remove members from a group​

POST /groups/{id}/members/remove

Scopes: system

Parameters

NameInTypeRequiredDescription
idpathstring (uuid)Yes

Request body (required): application/json

Schema: MembersRequest

1 property
NameTypeRequiredDescription
membersarray of MemberYes

List of members to add or remove

Responses

CodeDescriptionSchema
200

Members removed successfully

Group
400

Bad request

Error
403

Forbidden

Error
404

Group not found

Error
500

Internal server error

string

groups-by-path​

Create and list groups within an organization unit identified by its handle path.

List groups in organization unit specified by handle path​

GET /groups/tree/{path}

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

  • display - Include ouHandle, the human-readable handle of the organization unit, alongside the ouId.

Allowed values: display

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

string

Create a new group under the organization unit specified by the handle path​

POST /groups/tree/{path}

Scopes: system

Parameters

NameInTypeRequiredDescription
pathpathstringYes

Hierarchical path of organization unit handles separated by forward slashes. The new group will be created under the organization unit specified by this path. Examples:

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

Request body (required): application/json

Schema: CreateGroupByPathRequest

3 properties
NameTypeRequiredDescription
namestringYes

The display name of the group

descriptionstring

Optional description of the group

membersarray of Member

Optional list of initial members. Every member must be owned by the organization unit at the given path or shared with it.

Responses

CodeDescriptionSchema
201

Group created

Group
400

Bad request

Error
404

Organization unit not found

Error
409

Conflict

Error
500

Internal server error

string

Schemas​

Member​

Type: object

3 properties
NameTypeRequiredDescription
idstring (uuid)Yes
typestringYes

Allowed values: user, group, app, agent

displaystring

Display name of the member (only included when include=display query parameter is used). For users, resolved from the schema-configured display attribute (systemAttributes.display); falls back to the user ID if the attribute is not configured, the path does not exist, or the value is empty. For groups, the group name is used.

Group​

Type: object

6 properties
NameTypeRequiredDescription
idstring (uuid)Yes
namestringYes
descriptionstring
ouIdstring (uuid)Yes
ouHandlestring

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

membersarray of Member

CreateGroupRequest​

Type: object

4 properties
NameTypeRequiredDescription
namestringYes
descriptionstring
ouIdstring (uuid)Yes
membersarray of Member

Members of the group. Every member must be owned by the organization unit given in ouId or shared with it.

UpdateGroupRequest​

Type: object

3 properties
NameTypeRequiredDescription
namestringYes
descriptionstring
ouIdstring (uuid)Yes

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

MemberListResponse​

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.

membersarray of Member
linksarray of Link

CreateGroupByPathRequest​

Type: object

3 properties
NameTypeRequiredDescription
namestringYes

The display name of the group

descriptionstring

Optional description of the group

membersarray of Member

Optional list of initial members. Every member must be owned by the organization unit at the given path or shared with it.

Type: object

2 properties
NameTypeRequiredDescription
hrefstring
relstring

MembersRequest​

Type: object

1 property
NameTypeRequiredDescription
membersarray of MemberYes

List of members to add or remove

Error​

Type: object

3 properties
NameTypeRequiredDescription
codestringYes

Error code. The prefix identifies the service that produced the error, for example GRP for group management or SAZ for system authorization.

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?