Forums

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

Getting userid of multiple users using email through rest api

Jamshaid
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.
September 18, 2023

I am working on sending notifications using the notify API. I must include a few registered email addresses in Jira Cloud. I am trying to use the API like this:

 

String getUserDetailsURL = SERVER_URL + "rest/api/3/user/search?query=abc@gmail.com,asd@gmail.com";

But, whenever I send a request to it if an email is not registered in Jira, it searches for the related email i.e. I have two emails as 

jamshaidiqbal120@gmail.com

jamshaidiqbal120@outlook.com

Outlook email is registered in Jira, but Gmail is not. I have another email that is:

jamshaid@company.com

When I send requests using company email and Gmail, it returns company email and Outlook data. 

 

Why is the behavior like this? I want to retrieve data for multiple users at the same time. Is this endpoint respond like this?

Is there any other endpoint I should use?

Thanks

0 answers

Suggest an answer

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

Atlassian Community Events