Create user

POST {{baseUrl}}/Users

Create a new user in a tenant.

Note: The ‘subtenants’ field is optional. If it is present, the user is considered to be a subtenant user.

Request Body

{"userName"=>"<email>", "active"=>"<boolean>", "name"=>{"familyName"=>"<string>", "givenName"=>"<string>"}, "subtenants"=>[{"id"=>"<string>"}, {"id"=>"<string>"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;schemas&quot;:[&quot;urn:scim:schemas:core:1.0&quot;,&quot;urn:scim:schemas:core:1.0&quot;],&quot;id&quot;:&quot;2f95913-d3d9-4a4a-951a-c21184080cf3&quot;,&quot;userName&quot;:&quot;johndoe@example.com&quot;,&quot;name&quot;:{&quot;familyName&quot;:&quot;Doe&quot;,&quot;givenName&quot;:&quot;John&quot;},&quot;emails&quot;:[{&quot;value&quot;:&quot;johndoe@example.com&quot;},{&quot;value&quot;:&quot;johndoe@example.com&quot;}],&quot;active&quot;:false,&quot;meta&quot;:{&quot;created&quot;:&quot;2018-02-08T15:20:43.000Z&quot;,&quot;lastModified&quot;:&quot;2018-02-08T15:20:43.000Z&quot;,&quot;version&quot;:0},&quot;subtenants&quot;:[{&quot;id&quot;:&quot;octopus&quot;},{&quot;id&quot;:&quot;octopus&quot;}]}