Get Onezone user details
GET /zone/users/{id}
Returns the configuration information of the Onezone user.
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Id of the user to be described. |
Request Examples
Shell
onepanel-rest-cli -u onepanel:$PASSPHRASE getOnezoneUser id=$USER_ID --host https://$HOST:9443Responses
application/json
200
Oneozne user details.
| Property | Type & Description |
|---|---|
userId string Unique user Id. | |
fullName string User's full name (given names + surname). | |
username string User's human-readable identifier, unique across the system. Makes it easier to identify the user and can be used for signing in with password. | |
Example
application/json
{
"userId": "f1c8b1a37aa7447b22eb65a742d40524",
"fullName": "Rudolf Lingens",
"username": "r.lingens"
} 401
Unauthorized request.
403
Forbidden request.
404
The user does not exist.
500
Internal server error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
application/json
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}