How to get all users in jira using rest api

Hello Everyone !!

I want the list of all user in JIRA account (online) using rest api or want to search user based on email address.

I am trying to get this using below url but this is retuning empty  "[0]" values

https://testjira.atlassian.net/rest/api/2/user/search?username=sonika.jain@test.com

Please suggest

 

3 answers

This widget could not be displayed.

Hi Sonika,

I am not sure if you can get all users from JIRA rest api, but surely you can search user by username, email id or text from below query

If you are running this directory in browser then make sure you are logged in to JIRA before running this.

You will get Empty value also if there is no user with that email id or name.

I have tested using CURL and running in browser both are working

curl -u testjira:testjira https://testjira.atlassian.net/rest/api/2/user/search?username=sonika.jain@test.com

Taha

This widget could not be displayed.

Hi, Sonica.

About getting all the users, this should give you some information:

https://answers.atlassian.com/questions/140370

Kind regards,
Jaime Kirch da Silveira
Atlassian Cloud Support

This widget could not be displayed.

Hi,
It is possible to get the list all users (may be with in the limit of maximum returnable results). We need to use the search API.
https://servername/rest/api/2/user/search?username=%


The wildcard character to be used for this purpose is "%".

https://servername/rest/api/2/user/search?username=%

or 

https://servername/rest/api/2/user/assignable/multiProjectSearch?projectKeys=KEY1,KEY2,KEY3

 

Both requests give me active users only. How about all users?

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

115 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you