List user handle privileges
Returns the list of user's ({uid}) privileges in a handle ({id}).
This operation requires handle_view privilege
or oz_handles_view_privileges admin privilege.
Example cURL requests
List handle user privileges
curl -u username:password -X GET \
https://$HOST/api/v3/handles/$HANDLE_ID/users/$USER_ID/privileges
{
"privileges": [
"handle_delete",
"handle_update",
"handle_view"
]
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Handle Id. |
| uid required | string User Id. |
Request Examples
onezone-rest-cli listUserHandlePrivileges id=45bf25a5cb16e12a9faa6d088a2c7088 uid=5ca9574418d5a2c509265d37356ee549Responses
The list of user's privileges in the handle.
| Property | Type & Description |
|---|---|
privileges array of strings A list of privileges in the handle service. | |
Example
{
"privileges": [
"handle_delete",
"handle_update",
"handle_view"
]
}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."
}
}Authentication 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."
}
}Authorization 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."
}
}Resource not found.
| 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."
}
}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."
}
}