List effective user's harvester privileges
Returns the list of effective user's ({uid}) privileges in a harvester ({id}).
Effective privileges are a sum of user's privileges and privileges inherited from his group memberships.
This operation requires harvester_view_privileges privilege
or oz_harvesters_view_privileges admin privilege.
Example cURL requests
List effective user's privileges in a harvester
curl -u admin:password -X GET \
https://$HOST/api/v3/onezone/harvesters/$HARVESTER_ID/effective_users/$USER_ID/privileges
{
"privileges": [
"harvester_view",
"harvester_update",
"harvester_delete",
"harvester_view_privileges",
"harvester_set_privileges"
]
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Harvester Id. |
| uid required | string User Id. |
Request Examples
onezone-rest-cli listEffectiveUserHarvesterPrivileges id=b752ceafabb662b4e5728b2ded25cdd1 uid=c44d4ab910245342be5a0a89fdff095eResponses
The list of effective user's privileges in the harvester.
| Property | Type & Description |
|---|---|
privileges array of strings A list of privileges in the harvester. | |
Example
{
"privileges": [
"harvester_view",
"harvester_update",
"harvester_delete",
"harvester_view_privileges",
"harvester_set_privileges"
]
}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."
}
}