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

1 vote
Jehan Bhathena
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 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 Leaders.
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.

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events