Query parameters
- application
string The name of the application. Application privileges are always associated with exactly one application. If you do not specify this parameter, the API returns information about all privileges for all applications.
- priviledge
string The name of the privilege. If you do not specify this parameter, the API returns information about all privileges for the requested application.
- username
string | null
GET /_security/user/_privileges
curl \
--request GET 'http://api.example.com/_security/user/_privileges' \
--header "Authorization: $API_KEY"
Response examples (200)
A successful response from `GET /_security/user/_privileges`.
{
"cluster" : [
"all"
],
"global" : [ ],
"indices" : [
{
"names" : [
"*"
],
"privileges" : [
"all"
],
"allow_restricted_indices" : true
}
],
"applications" : [
{
"application" : "*",
"privileges" : [
"*"
],
"resources" : [
"*"
]
}
],
"run_as" : [
"*"
]
}