Skip to content

Commit

Permalink
[DOCS] Fix docs for user profiles (elastic#102452) (elastic#102518)
Browse files Browse the repository at this point in the history
* [DOCS] Fix docs for user profiles

(cherry picked from commit 9f1875e)

Co-authored-by: Fabio Busatto <[email protected]>
  • Loading branch information
abdonpijpelink and bytebilly authored Nov 23, 2023
1 parent ff7792c commit 5db2b23
Showing 1 changed file with 21 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,31 +96,33 @@ requested set of cluster, index, and application privileges:

[source,console]
--------------------------------------------------
POST /_security/user/_has_privileges
POST /_security/profile/_has_privileges
{
"uids": [
"u_LQPnxDxEjIH0GOUoFkZr5Y57YUwSkL9Joiq-g4OCbPc_0",
"u_rzRnxDgEHIH0GOUoFkZr5Y27YUwSk19Joiq=g4OCxxB_1",
"u_does-not-exist_0"
],
"cluster": [ "monitor", "create_snapshot", "manage_ml" ],
"index" : [
{
"names": [ "suppliers", "products" ],
"privileges": [ "create_doc"]
},
{
"names": [ "inventory" ],
"privileges" : [ "read", "write" ]
}
],
"application": [
{
"application": "inventory_manager",
"privileges" : [ "read", "data:write/inventory" ],
"resources" : [ "product/1852563" ]
}
]
"privileges": {
"cluster": [ "monitor", "create_snapshot", "manage_ml" ],
"index" : [
{
"names": [ "suppliers", "products" ],
"privileges": [ "create_doc"]
},
{
"names": [ "inventory" ],
"privileges" : [ "read", "write" ]
}
],
"application": [
{
"application": "inventory_manager",
"privileges" : [ "read", "data:write/inventory" ],
"resources" : [ "product/1852563" ]
}
]
}
}
--------------------------------------------------
// TEST[skip:TODO setup and tests will be possible once the profile uid is predictable]
Expand Down

0 comments on commit 5db2b23

Please sign in to comment.