@@ -96,31 +96,33 @@ requested set of cluster, index, and application privileges:
9696
9797[source,console]
9898--------------------------------------------------
99- POST /_security/user /_has_privileges
99+ POST /_security/profile /_has_privileges
100100{
101101 "uids": [
102102 "u_LQPnxDxEjIH0GOUoFkZr5Y57YUwSkL9Joiq-g4OCbPc_0",
103103 "u_rzRnxDgEHIH0GOUoFkZr5Y27YUwSk19Joiq=g4OCxxB_1",
104104 "u_does-not-exist_0"
105105 ],
106- "cluster": [ "monitor", "create_snapshot", "manage_ml" ],
107- "index" : [
108- {
109- "names": [ "suppliers", "products" ],
110- "privileges": [ "create_doc"]
111- },
112- {
113- "names": [ "inventory" ],
114- "privileges" : [ "read", "write" ]
115- }
116- ],
117- "application": [
118- {
119- "application": "inventory_manager",
120- "privileges" : [ "read", "data:write/inventory" ],
121- "resources" : [ "product/1852563" ]
122- }
123- ]
106+ "privileges": {
107+ "cluster": [ "monitor", "create_snapshot", "manage_ml" ],
108+ "index" : [
109+ {
110+ "names": [ "suppliers", "products" ],
111+ "privileges": [ "create_doc"]
112+ },
113+ {
114+ "names": [ "inventory" ],
115+ "privileges" : [ "read", "write" ]
116+ }
117+ ],
118+ "application": [
119+ {
120+ "application": "inventory_manager",
121+ "privileges" : [ "read", "data:write/inventory" ],
122+ "resources" : [ "product/1852563" ]
123+ }
124+ ]
125+ }
124126}
125127--------------------------------------------------
126128// TEST[skip:TODO setup and tests will be possible once the profile uid is predictable]
0 commit comments