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:Ā 

I'm lookig for a way to get an specific user with Jira DC REST API using the email adress

Felipe Perez _ServiceRocket_
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 13, 2024

Following this guide Find Users , when I use the following API call

http://www.example.com/jira/rest/api/2/user/search?username=f.per@servicerocket.com

I get all the users with a similar email to the one provided instead of the specified user.

In my example, I get these two users instead of the one related to the email

"key": "JIRAUSER10105",
"name": "fperezcorrea",
"emailAddress": "f.per.correa@servicerocket.com",
"displayName": "Felipe Perez Correa",
       
"key": "JIRAUSER10101",     
"name": "fperezSR",   
"emailAddress": "f.per@servicerocket.com,"   
 "displayName": "felipe perez SR",
       

Is it possible to get the specific user using the email address?

Thank you in Advance

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Bill Sheboy
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 13, 2024

Hi @Felipe Perez _ServiceRocket_ 

That appears to be a known defect, which you may watch / vote for to see progress: https://jira.atlassian.com/browse/JRASERVER-72862

You do not describe how you are making that call to the REST API function: a custom app, automation rule, etc.  One possible workaround (depending on your usage) is to make the REST API call to get the partial matches and then use a regular expression or other text matching to find any exact matches.

Kind regards,
Bill

DEPLOYMENT TYPE
SERVER
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events