Create User
Creates a new user in the system.
URL |
Copy
|
Method |
|
Header parameters
Name |
Description |
---|---|
|
Data parameters (body)
Parameter | Type | Default | Description |
---|---|---|---|
username*
|
string
|
|
The name of the user being created. This parameter is mandatory if the lab is not configured to use the email address as the user. |
password
|
string
|
|
The password for the user. See also Password policy. This field is mandatory if |
firstName
|
string
|
|
The new user's first name. |
lastName
|
string
|
|
The new user's last name. |
email*
|
string
|
|
The new user's email address. |
roles
|
string
|
|
The roles assigned to the new user, specified as a comma-seperated list. |
enabled
|
boolean
|
true
|
A flag that indicates if the user is enabled in the system. |
isIdpUser
|
boolean
|
false
|
A flag that indicates if the user is authenticated through a third-party identity provider (IdP). |
tempPassword
|
string
|
false
|
The temporary password used to log into the system for the first time. |
sendNotification
|
boolean
|
false
|
|
groupKey
|
string
|
|
The ID of the group that the new user is assigned to. |
idpLink
|
string
|
|
The link to the third-party identity provider, if used. |
idpUsername
|
string
|
|
The username in the IdP system, if used. |
deviceGroups
|
an array of a string
|
|
The name of the device groups that the user is assigned to. |
* Mandatory parameter
Success response
Code: 200
{
"username":"BenB",
"password":"sdS!4dfd",
"firstName":"Ben",
"lastName":"Amar",
"email":BenB@gmail.com,
"roles":["administrator"]
}
{
"username": "benb",
"password": "sdS!4dfd",
"firstName": "Ben",
"lastName": "Amar",
"email": BenB@gmail.com,
"roles": ["administrator"],
"enabled": true,
"locked": false,
"isIdpUser": false,
"lastLoginAt": 0
}