POST | Users
  • 1 minute to read
  • Dark
    Light
  • PDF

POST | Users

  • Dark
    Light
  • PDF

Article summary

Request

To create Users, send a request to the following endpoint:

POST /iso/scim/v2/Users

Parameters

NameTypeRequiredDescriptionExample
userNameStringRequiredThe unique login identifier for the user."dschrute"
externalIdStringRequiredAn external identifier for the user."12345"
name.formattedStringRequiredThe full name of the user."Dwight Schrute"
name.familyNameStringOptionalThe family name or last name of the user."Schrute"
name.givenNameStringOptionalThe given name or first name of the user."Dwight"
phoneNumbers.valueStringOptionalThe user's phone number."+1 (555) 123-4567"
emails.valueStringRequiredThe user's email address."[email protected]"
emails.typeStringOptionalThe category of the email address."work"
emails.primaryBooleanOptionalIndicates whether the email address is the user's primary email.true
entitlements.valueStringOptionalThe user's role in the system."Assistant Regional Manager"
groups.valueStringOptionalThe user groups associated with the user."Sales Team"

Return

Returns the created users and the associated information when successful.

Sample response

HTTP/1.1 201 Created

{
  "schemas":["urn:ietf:params:scim:schemas:core:2.0:User"],
  "id":"2819c223-7f76-453a-919d-413861904646",
  "externalId":"dschrute",
  "meta":{
    "resourceType":"User",
    "created":"2011-08-01T21:32:44.882Z",
    "lastModified":"2011-08-01T21:32:44.882Z",
    "location": "https://example.com/v2/Users/2819c223-7f76-453a-919d-413861904646",
    "version":"W\/\"e180ee84f0671b1\""
  },
  "name":{
    "familyName":"Schrute",
    "givenName":"Dwight"
  },
  "userName":"dschrute"
}
Caution

If the user's password is included in the request, the user must use that password. Otherwise, you should generate a random password, and the administrator must log in to senhasegura to modify it and share it with the user.


Was this article helpful?

What's Next