Create a Group and Add Members
POST {{baseUrl}}/.api/api.svc/usergroups/addwithusers?groupname={{$randomDepartment}}
This endpoint can be used to create a group and populate it with users in the same step.
Request Params
| Key | Datatype | Required | Description |
| groupname
| string | | (Required) - String
The name of the group to be created as it will appear in the digital workplace. |
| spaceId
| string | | GUID
The object ID of the space where the group should be created, if applicable. |
| ids
| string | | GUID
The user IDs for any members that should be added to the group upon creation. To add multiple users at once, create a comma separated list. |
HEADERS
| Key | Datatype | Required | Description |
| Accept
| string | | The type of response data to request. By default this endpoint will respond with XML.
The options are:
- application/json
- application/xml |
RESPONSES
status: OK
{"minRequestPeriod":0,"requestSupportCode":637744900484615617,"dictionary":null,"response":{"__type":"userGroup:http://schemas.iglooplatform.com/Igloo.Old.Common","id":"{{$randomUUID}}","href":"","navType":0,"type":3,"communityId":"{{$randomUUID}}","name":"{{$randomDepartment}}","spaceId":null,"numMembers":4,"ldapSynced":false,"spaceTitle":""}}