POST http(s)://{ZEPHYR-SERVER}/flex/services/rest/latest/user
Create a user without a role:
{
"firstName": "John",
"lastName": "Smith",
"email": "John.Smith@smartbear.com",
"username": "John.Smith",
"accountEnabled": true,
"credentialsExpired": false,
"isCustomizeUsername": null
}
Create a user with a role:
{
"firstName": "John",
"lastName": "Smith",
"email": "John.Smith@smartbear.com",
"username": "John.Smith",
"accountEnabled": true,
"credentialsExpired": false,
"isCustomizeUsername": null,
"roles": [
{ "id":5, "name":"dashboard" },
{ "id":106, "name":"Administration Role" }
]
}
{
"id": 11,
"username": "John.Smith",
"firstName": "John",
"lastName": "Smith",
"email": "John.Smith@smartbear.com",
"accountEnabled": true,
"accountExpired": false,
"credentialsExpired": false,
"roles": [],
"userType": 0,
"chargeableFlag": true,
"onlyLoggedInUser": false,
"groupSet": [],
"countAttempts": 0,
"isInternal": true,
"fullName": "John Smith"
}
PUT http(s)://{ZEPHYR-SERVER}/flex/services/rest/v3/user/{user ID}
where {user ID}
is the ID of the Zephyr Enterprise user.
{
"firstName":"John",
"lastName":"Smith",
"type":"",
"roles":[
{"id":5,"name":"dashboard"},
{"id":106,"name":"Administration Role "}
],
"email":"John.Smith@abc.com",
"username":"John.Smith",
"accountEnabled":true,
"credentialsExpired":true,
"id":10,
"isCustomizeUsername":null,
"userType":0,
"chargeableFlag":true,
"groupSet":[]
}