Create group

​

Creates a new group in the authenticated admin's organisation.

Authorization: Requires admin role in the organisation.

Groups are organisation-level only. They can have:

  • members: Array of user IDs
  • roles: Array of role IDs (all members inherit these roles)

RFC Reference: RFC 7644 Section 3.3

Body

required
application/json

Responses

  • application/scim+json
  • application/scim+json
  • application/scim+json
  • application/scim+json
  • application/scim+json
Request Example for post/v2/scim2/Groups
curl https://api.consentio.co/v2/scim2/Groups \
  --request POST \
  --header 'Content-Type: application/scim+json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:Group"
  ],
  "externalId": "idp-grp-purchasing",
  "displayName": "Purchasing Team",
  "members": [
    {
      "value": "usr_abc123",
      "display": "John Smith"
    },
    {
      "value": "usr_def456",
      "display": "Jane Doe"
    }
  ]
}'
{
  "schemas": [
    "string"
  ],
  "id": "grp_abc123",
  "externalId": "idp-grp-123",
  "displayName": "string",
  "members": [
    {
      "value": "string",
      "display": "string",
      "ref": "https://example.com"
    }
  ],
  "roles": [
    "role_purchasing_manager"
  ],
  "meta": {
    "resourceType": "Group",
    "created": "2026-11-11T10:14:31.953Z",
    "lastModified": "2026-11-11T10:14:31.953Z",
    "location": "https://example.com"
  }
}