Create Onezone user
Creates a new Onezone user account with Basic (username & password) authentication enabled.
Request body
The user configuration details.
| Property | Type & Description |
|---|---|
username string | |
password string | |
groups array of strings Ids of Onezone groups to which the user should be added. The groups must already exist. | |
Request Examples
{
"username": "admin",
"password": "somePassword",
"groups": [
"admins"
]
}Responses
Invalid request.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Forbidden request.
Internal server error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}