Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

When using the "Get user email bulk" (/rest/api/3/user/email/bulk) with a single accountId parameter, I am able to get the email address associated with the id, e.g


but I have tried the following and both result in a 200 response that has an empty array:



What is the correct syntax for using multiple ids?

1 answer

0 votes
Prince Nyeche Community Leader Apr 17, 2021

Hi @wei 

I would like to ask, did you use an Array<string> to construct the request that you're trying to get? I would expect an array of strings to look like below.

/rest/api/3/user/email/bulk?accountId=[{accountId}, {accountId}]

Hi @Prince Nyeche

I've tried that and it too returns an empty array as the result.

Prince Nyeche Community Leader Apr 19, 2021

Just want to ask, did you register with Atlassian to get access to this API as it is a private API after all?

Yep, I had requested access to email addresses from Atlassian and received approval for it a while back. I figure it might be an issue with syntax for the URI, since with "Get user email" (/rest/api/3/user/email?accountId={accountId1}) I am able to get the correct results for a single accountId.

@wei Yeah, it should probably be the syntax or do they want you to feed the data from a list into the endpoint

lists = [accountId1, accountId2, accountId3]
for x in lists:
run = /rest/api/3/user/email?accountId=x

I'm not sure if this what's expected, but if a single entry works, then doing like above should. 

Suggest an answer

Log in or Sign up to answer
Community showcase

The benefits of using Jira in different departments

Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...

95 views 0 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you