Uploaded image for project: 'JIRA (including JIRA Core)'
  1. JIRA (including JIRA Core)
  2. JRA-29069

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

    Details

    • Feedback Policy:

      JIRA feedback is collected from a number of different sources and is evaluated when planning the product roadmap. If you would like to know more about how JIRA Product Management uses customer input during the planning process, please see our post on Atlassian Answers.

      Description

      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 with return 5 users starting from the 3rd user in the list:

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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yogesh.m90 Yogesh Maheshwari
            • Votes:
              76 Vote for this issue
              Watchers:
              52 Start watching this issue

              Dates

              • Created:
                Updated: