get-users.asciidoc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --
  2. :api: get-users
  3. :request: GetUsersRequest
  4. :response: GetUsersResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Get Users API
  8. [id="{upid}-{api}-request"]
  9. ==== Get Users Request
  10. Retrieving a user can be performed using the `security().getUsers()`
  11. method and by setting the username on +{request}+:
  12. ["source","java",subs="attributes,callouts,macros"]
  13. --------------------------------------------------
  14. include-tagged::{doc-tests-file}[{api}-request]
  15. --------------------------------------------------
  16. Retrieving multiple users can be performed using the `security().getUsers()`
  17. method and by setting multiple usernames on +{request}+:
  18. ["source","java",subs="attributes,callouts,macros"]
  19. --------------------------------------------------
  20. include-tagged::{doc-tests-file}[{api}-list-request]
  21. --------------------------------------------------
  22. Retrieving all users can be performed using the `security().getUsers()`
  23. method without specifying any usernames on +{request}+:
  24. ["source","java",subs="attributes,callouts,macros"]
  25. --------------------------------------------------
  26. include-tagged::{doc-tests-file}[{api}-all-request]
  27. --------------------------------------------------
  28. include::../execution.asciidoc[]
  29. [id="{upid}-{api}-response"]
  30. ==== Get Users Response
  31. The returned +{response}+ allows getting information about the retrieved users as follows.
  32. ["source","java",subs="attributes,callouts,macros"]
  33. --------------------------------------------------
  34. include-tagged::{doc-tests-file}[{api}-response]
  35. --------------------------------------------------