get-user-privileges.asciidoc 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --
  2. :api: get-user-privileges
  3. :request: GetUserPrivilegesRequest
  4. :response: GetUserPrivilegesResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Get User Privileges API
  9. include::../execution-no-req.asciidoc[]
  10. [id="{upid}-{api}-response"]
  11. ==== Get User Privileges Response
  12. The returned +{response}+ contains the following properties
  13. `clusterPrivileges`::
  14. A `Set` of all _cluster_ privileges that are held by the user.
  15. This will be the union of all the _cluster_ privileges from the user's roles.
  16. `globalPrivileges`::
  17. A `Set` of all _global_ privileges that are held by the user.
  18. This will be the union of all the _global_ privileges from the user's roles.
  19. Because this a union of multiple roles, it may contain multiple privileges for
  20. the same `category` and `operation` (which is why it is represented as a `Set`
  21. rather than a single object).
  22. `indicesPrivileges`::
  23. A `Set` of all _index_ privileges that are held by the user.
  24. This will be the union of all the _index_ privileges from the user's roles.
  25. Because this a union of multiple roles, it may contain multiple privileges for
  26. the same `index`, and those privileges may have independent field level security
  27. access grants and/or multiple document level security queries.
  28. `applicationPrivileges`::
  29. A `Set` of all _application_ privileges that are held by the user.
  30. This will be the union of all the _application_ privileges from the user's roles.
  31. `runAsPrivilege`::
  32. A `Set` representation of the _run-as_ privilege that is held by the user.
  33. This will be the union of the _run-as_ privilege from each of the user's roles.
  34. ["source","java",subs="attributes,callouts,macros"]
  35. --------------------------------------------------
  36. include-tagged::{doc-tests-file}[{api}-response]
  37. --------------------------------------------------