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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"schemas":["urn:scim:schemas:core:1.0","urn:scim:schemas:core:1.0"],"id":"2f95913-d3d9-4a4a-951a-c21184080cf3","userName":"johndoe@example.com","name":{"familyName":"Doe","givenName":"John"},"emails":[{"value":"johndoe@example.com"},{"value":"johndoe@example.com"}],"active":false,"meta":{"created":"2018-02-08T15:20:43.000Z","lastModified":"2018-02-08T15:20:43.000Z","version":0},"subtenants":[{"id":"octopus"},{"id":"octopus"}]}