https://shalakasi.atlassian.net/rest/api/2/user/search?username=%25
This Api is behaving differently on cloud and on premise.Is there anyRest Api available so that we can get all the users for a particular instance with pagination support
Hello Shalakak,
The rest API you mentioned is the correct one and should be working on JIRA Server too. Can you please confirm if you have properly configured the URL before the API call (http://www.example.com/rest/api/2/user/search?username=%25) and if you have the proper permissions to perform the Rest API?
You can also try: "/rest/api/2/user/assignable/search?project=PROJECT_NAME_HERE"
About the pagination feature, you can use the startAt and maxResults parameter, like:
/rest/api/2/user/search?username=%25&startAt=xx&maxResults=xx
For reference, you can also check the discussion on the topic below:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.