Check user privileges Added in 6.4.0
Determine whether the specified user has a specified list of privileges.
Path parameters
-
Username
Body Required
-
application array[object]
-
cluster array[string]
A list of the cluster privileges that you want to check.
-
index array[object]
POST /_security/user/{user}/_has_privileges
curl \
-X POST http://api.example.com/_security/user/{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}]}'