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

Unable to Search User from Number 1000 and above using REST API

XMLWordPrintable

      Steps to Reproduce:

      1. With JIRA installed, create more than 1000 users.
      2. To do so, we could use the plugins below:
      3. Then, search user using GET REST call below:
      4. For example:
        http://10.60.2.88:8722/jira722/rest/api/2/user/search?startAt=0&maxResults=1000&username=""
      1. 1000 users will result from the call.
      2. Then, search for the rest of 1000 users (1000~2000), let us not use maxResults so the default number of result "50" is set.
        http://10.60.2.88:8722/jira722/rest/api/2/user/search?startAt=1000&username=""

      Expected Result:

      • The response will show with user 1000~1050

      Actual Result:

      • Nothing is shown beside []

      Notes:

      • Try running the REST call like below and there will be only 1 user being shown where we expect another 50 more
        http://10.60.2.88:8722/jira722/rest/api/2/user/search?startAt=999&username=""

      Workaround

      Crowd's REST API:

      Documentation

      Steps

      1. Got to Cog icon > User management > Jira user server;
      2. Click the button + Add application;
      3. Enter the application name and password;
      4. Enter the IP address of the application;
      5. Click save;
      6. Use the following URL to pull the records
        • <JIRA_URL>/rest/usermanagement/1/search?entity-type=user&start-index=0&max-results=100&expand=user

              drauf Daniel Rauf
              jrahmadiputra Julian (Inactive)
              Votes:
              22 Vote for this issue
              Watchers:
              30 Start watching this issue

                Created:
                Updated:
                Resolved: