List group's effective admin privileges
Returns the list of group's ({id}) effective admin privileges in Onezone.
Effective privileges are a sum of group's privileges and privileges inherited from its parent group memberships.
This operation requires oz_view_privileges admin privilege.
Example cURL requests
List group's effective admin privileges in Onezone
curl -u admin:password -X GET \
https://$HOST/api/v3/onezone/groups/$GROUP_ID/effective_privileges
{
"privileges": [
"oz_view_privileges",
"oz_users_list",
"oz_users_view",
"oz_groups_list",
"oz_groups_view",
"oz_spaces_list",
"oz_spaces_view",
"oz_shares_list",
"oz_shares_view",
"oz_providers_list",
"oz_providers_view",
"oz_handle_services_list",
"oz_handle_services_view",
"oz_handles_list",
"oz_handles_view"
]
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Group Id. |
Request Examples
onezone-rest-cli listGroupEffectiveAdminPrivileges id=f1c8b1a37aa7447b22eb65a742d40524Responses
The list of group's effective admin privileges in Onezone.
| Property | Type & Description |
|---|---|
privileges array of strings A list of admin privileges in Onezone. | |
Example
{
"privileges": [
"oz_view_privileges",
"oz_users_list",
"oz_users_view",
"oz_groups_list",
"oz_groups_view",
"oz_spaces_list",
"oz_spaces_view",
"oz_shares_list",
"oz_shares_view",
"oz_providers_list",
"oz_providers_view",
"oz_handle_services_list",
"oz_handle_services_view",
"oz_handles_list",
"oz_handles_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."
}
}