The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

can we filter users by email or username through rest api ?

Ps Guhan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 27, 2024

it is asking for account id as mandatory

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Jehan Bhathena
Community Champion
May 27, 2024

Hi @Ps Guhan 

This is the API you can use https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search/#api-rest-api-3-user-search-get

You can query the user's email and in the response contains the Account ID.

1 vote
Umut Ekin AL
Contributor
May 27, 2024

Hello @Ps Guhan ,

 

This link may help you.

 

Please let me know if this helps,

Umut

0 votes
Pavol Gočal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 27, 2024

Hello @Ps Guhan

I have tried the API calls to get users for v2 and v3 API and it seems that filtering by username or email is not available in APIs endpoints.

Also the official documentation seems to be out of date. Based on this link, it seems like only accountId is available for request.

 

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events