@@ -96,31 +96,33 @@ requested set of cluster, index, and application privileges:
96
96
97
97
[source,console]
98
98
--------------------------------------------------
99
- POST /_security/user /_has_privileges
99
+ POST /_security/profile /_has_privileges
100
100
{
101
101
"uids": [
102
102
"u_LQPnxDxEjIH0GOUoFkZr5Y57YUwSkL9Joiq-g4OCbPc_0",
103
103
"u_rzRnxDgEHIH0GOUoFkZr5Y27YUwSk19Joiq=g4OCxxB_1",
104
104
"u_does-not-exist_0"
105
105
],
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
+ }
124
126
}
125
127
--------------------------------------------------
126
128
// TEST[skip:TODO setup and tests will be possible once the profile uid is predictable]
0 commit comments