Forums

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

API - "Get user email bulk" endpoint returns empty when used with multiple IDs

Fernando Montes
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 20, 2020

When I use the "Get user email bulk" (user/email/bulk) with a single accountId parameter it works. Example

accountId={accountId}

but when I try to use multiple like this

accountId={accountId},{accountId}

I do not get results. It does not error just returns an empty body. 

Am I using the wrong syntax? If so what is the correct syntax? Could it be a bug with the endpoint?

I do not have to use this endpoint often but when I do I might have to grab a hundred or more emails and would rather not have to do it one at a time. 

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 21, 2020

Hello @Fernando Montes

Thank you for reaching out.

The REST API syntax must have the "&&" parameter to properly search for multiple users, so this would be the correct endpoint:

rest/api/3/user/email/bulk?accountId={accountId}&&accountId={accountId}

Additionally, as you can see in the official REST API documentation, the endpoint "/rest/api/3/user/email/bulk" is experimental, so it might be updated at any time and may not work as expected.

Let us know if you have any questions.

Suggest an answer

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

Atlassian Community Events