get-user-privileges.asciidoc 1.7 KB

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