Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

On cloud we can get all the user using rest Api but on premise same Api is not working?

shalakak September 11, 2018

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

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 12, 2018

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:

Any way to get all users list using JIRA REST API 

Suggest an answer

Log in or Sign up to answer