Update user group
PUT/groups-srv/usergroups/:groupId
This API call updates given user group for instance to change group name.
Updatable Fields:
groupName: Can be updated to change the display namegroupType: Can be changed, but must reference an existing group typeparentId: Can be changed, but must be "root" or a valid existing groupId (no circular references)customFields: Can be updated, added, or removed- Visibility settings:
memberProfileVisibility,noneMemberProfileVisibility make_first_user_admin: Can be updated
Immutable Fields:
groupId: Cannot be changed (serves as unique identifier)groupOwner: Cannot be changed after creation
Validation Rules:
groupId: Must exist and match the path parametergroupName: If provided, cannot be emptygroupType: If provided, must reference an existing group typeparentId: If provided, must be "root" or a valid existing groupId- Circular references are not allowed (a group cannot be its own parent or ancestor)
Business Rules:
- When changing
groupType, ensure the new groupType's roleMode allows the roles currently assigned to users in this group - When changing
parentId, the new parent must exist and not create circular references - System-managed user groups (groupOwner: admin) cannot be updated via API
- Changes to groupType may affect which roles can be assigned to users in the future
Request
Responses
- 200
- 401
- 404
- 417
OK - User group updated successfully
Unauthorized - Authentication failed or missing required scope
Not Found - User group does not exist
Expectation Failed - Validation failed (e.g., invalid groupType, invalid parentId, circular reference, or missing required fields)