SCIM 2.0: Create new user
POST
Authorizationheader
Authorization<token>New user
application/json- body
active?booleanActive is a ptr to prevent the empty value from being interpreted as false.
emails?array<>groups?array<unknown>id?stringmeta?name?schemas?array<string>userName?stringOK
application/json- response
active?booleanActive is a ptr to prevent the empty value from being interpreted as false.
emails?array<>groups?array<unknown>id?stringmeta?name?schemas?array<string>userName?stringThe samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X POST \ "$CODER_URL/scim/v2/Users" \ -H "Authorization: {Authorization}" \ -H "Content-Type: application/json" \ -d '{ "active": true, "emails": [ { "display": "string", "primary": true, "type": "string", "value": "[email protected]" } ], "groups": [ null ]}'Example Response200
{ "active": true, "emails": [ { "display": "string", "primary": true, "type": "string", "value": "[email protected]" } ], "groups": [ null ], "id": "string", "meta": { "resourceType": "string" }, "name": { "familyName": "string", "givenName": "string" }, "schemas": [ "string" ], "userName": "string"}