Group Management API
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
| 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 |
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
| 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 groups by organization unit. The only supported expression is | |
include | query | string | Optional parameter to include additional display information.
Allowed values: |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
description | string | ||
ouId | string (uuid) | Yes | |
members | array of Member | Members of the group. Every member must be owned by the organization unit given in |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes | |
include | query | string | Optional parameter to include additional display information.
Allowed values: |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes |
Request body (required): application/json
Schema: UpdateGroupRequest
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
description | string | ||
ouId | string (uuid) | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes | |
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 information.
Allowed values: |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes |
Request body (required): application/json
Schema: MembersRequest
1 property
| Name | Type | Required | Description |
|---|---|---|---|
members | array of Member | Yes | List of members to add or remove |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes |
Request body (required): application/json
Schema: MembersRequest
1 property
| Name | Type | Required | Description |
|---|---|---|---|
members | array of Member | Yes | List of members to add or remove |
Responses
| Code | Description | Schema |
|---|---|---|
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
| 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.
Allowed values: |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
path | path | string | Yes | 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:
|
Request body (required): application/json
Schema: CreateGroupByPathRequest
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The display name of the group |
description | string | Optional description of the group | |
members | array 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
| Code | Description | Schema |
|---|---|---|
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
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | |
type | string | Yes | Allowed values: |
display | string | Display name of the member (only included when include=display query parameter is used). For users, resolved from the schema-configured display attribute ( |
Group
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | |
name | string | Yes | |
description | string | ||
ouId | string (uuid) | Yes | |
ouHandle | string | Human-readable handle of the organization unit (only included when include=display query parameter is used). | |
members | array of Member |
CreateGroupRequest
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
description | string | ||
ouId | string (uuid) | Yes | |
members | array of Member | Members of the group. Every member must be owned by the organization unit given in |
UpdateGroupRequest
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
description | string | ||
ouId | string (uuid) | Yes |
GroupListResponse
Type: object
MemberListResponse
Type: object
CreateGroupByPathRequest
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The display name of the group |
description | string | Optional description of the group | |
members | array of Member | Optional list of initial members. Every member must be owned by the organization unit at the given path or shared with it. |
MembersRequest
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
members | array of Member | Yes | List of members to add or remove |
Error
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Error code. The prefix identifies the service that produced the error, for example GRP for group management or SAZ for system authorization. |
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?