List effective user's group privileges
Returns the list of effective user's ({uid}) privileges in a group ({id}).
Effective privileges are a sum of user's privileges and privileges inherited from his group memberships.
This operation requires group_view_privileges privilege.
For administrator who does not belong to this group
oz_groups_view_privileges privilege is required.
Example cURL requests
List effective user's privileges in a group
curl -u username:password -X GET \
https://$HOST/api/v3/onezone/groups/$GROUP_ID/effective_users/$USER_ID/privileges
{
"privileges": [
"group_view",
"group_update",
"group_delete",
"group_view_privileges",
"group_set_privileges"
]
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Group Id. |
| uid required | string User Id. |
Request Examples
onezone-rest-cli listEffectiveUserGroupPrivileges id=a4d3bc73aada63052310652d421609f1 uid=a5b469a2b0516b662a49da74d6d7d7bcResponses
The list of effective user's privileges in the group.
| Property | Type & Description |
|---|---|
privileges array of strings A list of privileges in the group. | |
Example
{
"privileges": [
"group_view",
"group_update",
"group_delete",
"group_view_privileges",
"group_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."
}
}