[DOCS] Add get user privileges API (#73016)

This commit is contained in:
Lisa Cawley 2021-06-22 08:16:21 -07:00 committed by GitHub
parent 60ee57f079
commit 68c33dc713
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 88 additions and 6 deletions

View file

@ -7,6 +7,9 @@
[id="{upid}-{api}"]
=== Get Builtin Privileges API
Retrieves the list of cluster privileges and index privileges that are
available in this version of {es}.
include::../execution-no-req.asciidoc[]
[id="{upid}-{api}-response"]

View file

@ -6,12 +6,14 @@
--
[role="xpack"]
[id="{upid}-{api}"]
=== Get Privileges API
=== Get Application Privileges API
Retrieves application privileges.
[id="{upid}-{api}-request"]
==== Get Privileges Request
The +{request}+ supports getting privilege(s) for all or for specific applications.
The +{request}+ supports getting privileges for all or for specific applications.
===== Specific privilege of a specific application

View file

@ -7,6 +7,8 @@
[id="{upid}-{api}"]
=== Get User Privileges API
Retrieves security privileges for the logged in user.
include::../execution-no-req.asciidoc[]
[id="{upid}-{api}-response"]

View file

@ -7,6 +7,8 @@
[id="{upid}-{api}"]
=== Has Privileges API
Determines whether the logged in user has a specified list of privileges.
[id="{upid}-{api}-request"]
==== Has Privileges Request
The +{request}+ supports checking for any or all of the following privilege types: