Groups

Operations of the Identity API (public). Paths are relative to your deployment's API host.

GET /api/identity-api/groups

List groups

List groups, optionally filtered by parentId and/or search. When an organization is in context, results are scoped to that organization's subtree.

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
parentIdquerystringnoRestrict results to direct children of the given parent group id. Omit to list realm-root groups (or, when an organization is in context, the organization itself + its direct children).
recursivequerybooleannoWhen listing members, include members of all descendant groups too. Ignored on group-list endpoints.
searchquerystringnoSubstring search over the group name (Keycloak semantics).
skipquerynumbernoPagination skip (offset).
takequerynumbernoPagination take (limit).
StatusDescriptionBody
200List groupsapplication/json object
401Unauthorizedapplication/json object
403Forbiddenapplication/json object

POST /api/identity-api/groups

Create group

Authentication: bearer token (Authorization: Bearer <token>)

Request body: application/json CreateGroupDto

StatusDescriptionBody
201Group createdapplication/json object
400Bad Requestapplication/json object
401Unauthorizedapplication/json object
403Forbiddenapplication/json object
409Conflictapplication/json object

GET /api/identity-api/groups/{id}

Get group by id

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200Group detailapplication/json object
401Unauthorizedapplication/json object
403Forbiddenapplication/json object
404Not Foundapplication/json object

PATCH /api/identity-api/groups/{id}

Update group

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
idpathstringyes

Request body: application/json UpdateGroupDto

StatusDescriptionBody
200Group updatedapplication/json object
400Bad Requestapplication/json object
401Unauthorizedapplication/json object
403Forbiddenapplication/json object
404Not Foundapplication/json object
409Conflictapplication/json object

DELETE /api/identity-api/groups/{id}

Delete group

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
204
401Unauthorizedapplication/json object
403Forbiddenapplication/json object
404Not Foundapplication/json object

POST /api/identity-api/groups/{id}/members

Add member to group

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
idpathstringyes

Request body: application/json AddGroupMemberDto

StatusDescriptionBody
204
401Unauthorizedapplication/json object
403Forbiddenapplication/json object
404Not Foundapplication/json object

DELETE /api/identity-api/groups/{id}/members/{userId}

Remove member from group

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
idpathstringyes
userIdpathstringyes
StatusDescriptionBody
204
401Unauthorizedapplication/json object
403Forbiddenapplication/json object
404Not Foundapplication/json object