Create a group

Creates a new group. Must include the displayName attribute. Users can be added to the group during creation by supplying the user ID values in the members array attribute.

Request
query Parameters
count
integer <int32>

The number of records returned per page in the response.

filter
string

The filter used to filter the group, either by organization id.

startIndex
integer <int32>

The index number of the page that you want to retrieve. You must set count before specifying startIndex. For example, if you set count to 20 and startIndex to 2, the 21st to 40th records are returned in the response.

header Parameters
Authorization
required
string

The value is in the Bearer {token} format where {token} is a valid OAuth token generated by calling Create an OAuth token.

Content-Type
required
string

The Content-Type of the request must be application/json.

Request Body schema: application/json
required
schemas
Array of strings

List of schema URNs defining the structure of the group resource.

displayName
string

Name of the group.

object
Responses
201

Created

401

Unauthorized

403

Forbidden

404

Not Found

post/scim/v2/Groups
Request samples
application/json
{
  • "schemas": [
    ],
  • "displayName": "Amy Laurance test scim",
  • "urn:zuora:scim:schemas:1.0:GroupExtension": {
    }
}
Response samples
application/json
{
  • "schemas": [
    ],
  • "id": "6cd663a3-39b6-49bf-9ec0-113381e40669",
  • "displayName": "Amy Lawrence",
  • "urn:zuora:scim:schemas:1.0:GroupExtension": {
    },
}