Skip to content
Skip to Content
Coder Docs

SCIM 2.0: Create new user

POST
/scim/v2/Users

Authorization

Authorization
headerAuthorization<token>

Request Body

New user

application/json
  1. body
active?boolean

Active is a ptr to prevent the empty value from being interpreted as false.

emails?array<>
groups?array<unknown>
id?string
meta?
name?
schemas?array<string>
userName?string

Response Body

OK

application/json
  1. response
active?boolean

Active is a ptr to prevent the empty value from being interpreted as false.

emails?array<>
groups?array<unknown>
id?string
meta?
name?
schemas?array<string>
userName?string

The 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"}