Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-29069

/rest/api/latest/user/search api doesn't return all values if username is not specified

    XMLWordPrintable

Details

    • 18
    • 9
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      Summary

      Currently "/rest/api/latest/user/search" API does not return all users if search string is blank:

      • /rest/api/latest/user/search?username=

      Notes

      In various environments, it has been observed that setting username to one of the following characters will do the trick:

      • /rest/api/latest/user/search?username="" (double quotes)
      • /rest/api/latest/user/search?username='' (single quotes)
      • /rest/api/latest/user/search?username=. (dot)
      • /rest/api/latest/user/search?username=% (percent)
      • /rest/api/latest/user/search?username=_ (underscore)

      Also, maxResults and startAt seem to be functioning.

      For example, in JIRA 7.3, the following calls will return 5 users starting from the 3rd user in the list:

      Replace http://localhost:8730/jira with actual Base URL

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              0e6f24aeabfa yogesh.m90
              Votes:
              183 Vote for this issue
              Watchers:
              104 Start watching this issue

              Dates

                Created:
                Updated: