I am using the REST API V2 version and want to get all JIRA users.
I am using GET rest/api/2/users?maxResults=2000 Endpoint for getting all JIRA users but It will return 1000 instead of 2000 users.
Can anyone please help me out with this issue?
All other API calls only return 100 results.
What you'll need to do is to page through all the results using the startAt parameter, so you can either set maxResults to 1000 or leaving it off.
The first call will have startAt=0, then the next one will be startAt=1000 etc. until you have all the results.
I've just looked at the documentation here which states that only 50 results are returned at a time, so I'm not sure how you are getting 1000.
If we set maxResults=1000 then it will return 1000 user's data at a time. If we don't pass maxResults then it will return default as 50 records.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.