Create SCIM group
POST /api/scim/v2/Groups
Creates a group for the tenant identified by the SCIM bearer token. displayName is required and limited to 255 characters; externalId is optional and limited to 255 characters; mappedRole is optional and must match a role configured by the gateway. Returns the created SCIM Group resource with HTTP 201.
Authenticate with a SCIM token.
Request body
application/scim+json object
displayNamestring requiredLength: 1 to 255 charactersexternalIdstring or nullLength: at most 255 charactersmappedRolestring or nullMust match a role name in the gateway's RBAC role configuration.
Length: at most 64 characters
Generated sample
{
"displayName": "string",
"externalId": "string",
"mappedRole": "string"
}Responses
201 Group created
application/json ScimGroupResource
displayNamestring requiredexternalIdstring or null requiredidstring requiredmappedRolestring or null requiredmetaobject requiredcreatedstring (date-time) or null requiredlastModifiedstring (date-time) or null requiredlocationstring (uri) requiredresourceTypestring requiredValue:"Group"
schemasarray of string required
Generated sample
{
"displayName": "string",
"externalId": "string",
"id": "string",
"mappedRole": "string",
"meta": {
"created": "2026-01-01T00:00:00Z",
"lastModified": "2026-01-01T00:00:00Z",
"location": "https://example.com",
"resourceType": "Group"
},
"schemas": [
"string"
]
}401 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
403 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
422 Invalid group fields or mappedRole.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string