Create user
Creates a new user in the authenticated admin's organisation.
Authorization: Requires admin role in the organisation.
External ID:
- Accept
externalIdfrom IdP - Store and return both
id(Consentio) andexternalId
Role Assignment: Roles are assigned via simple array of role IDs in the extension:
"urn:consentio:params:scim:schemas:extension:User:1.0": {
"roles": ["role_id_1", "role_id_2"]
}
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/Users
curl https://api.consentio.co/v2/scim2/Users \
--request POST \
--header 'Content-Type: application/scim+json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"externalId": "idp-user-123",
"userName": "john.smith@acme.com",
"name": {
"givenName": "John",
"familyName": "Smith"
},
"emails": [
{
"value": "john.smith@acme.com",
"type": "work",
"primary": true
}
],
"active": true
}'
{
"schemas": [
"string"
],
"id": "usr_abc123",
"externalId": "idp-user-123",
"userName": "string",
"name": {
"givenName": "string",
"familyName": "string"
},
"displayName": "string",
"emails": [
{
"value": "string",
"type": "string",
"primary": true
}
],
"active": true,
"groups": [
{
"value": "string",
"display": "string",
"ref": "https://example.com"
}
],
"urn:consentio:params:scim:schemas:extension:User:1.0": {
"roles": [
"role_purchasing_manager"
]
},
"meta": {
"resourceType": "User",
"created": "2026-11-11T10:14:31.624Z",
"lastModified": "2026-11-11T10:14:31.624Z",
"location": "https://example.com"
}
}