List current user effective privileges
Returns the list of currently authenticated user's admin privileges in Onezone.
Effective privileges are a sum of user's privileges and privileges inherited from his group memberships.
This operation can be invoked on behalf of the current user only.
Example cURL requests
List user's effective admin privileges in Onezone
curl -u username:password -X GET \
https://$ZONE_HOST/api/v3/onezone/user/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"
]
}
Request Examples
onezone-rest-cli listCurrentUserEffectiveAdminPrivilegesResponses
The list of user's effective admin privileges in Onezone.
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.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authentication error.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authorization error.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Resource not found.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Internal server Error.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}