Check user privileges Added in 6.4.0
Determine whether the specified user has a specified list of privileges.
Body Required
-
application array[object]
-
cluster array[string]
A list of the cluster privileges that you want to check.
-
index array[object]
GET /_security/user/_has_privileges
curl \
-X GET http://api.example.com/_security/user/_has_privileges \
-H "Content-Type: application/json" \
-d '{"application":[{"application":"string","privileges":["string"],"resources":["string"]}],"cluster":["string"],"index":[{"names":"string","privileges":["string"],"allow_restricted_indices":true}]}'