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