Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,455,376
Community Members
 
Community Events
175
Community Groups

/user/search API does not return emailAddress field

Hi, 

 

One of our customers - Next Insurance, has integrated with us and we're trying to fetch all users in their Jira. 

We use this endpoint https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-users-search-get to fetch the users, but for this customer, the emailAddress field is coming up as an empty string.  

Can you help me find out why that might be happening? 

Here's the curl request: 

curl --location --request GET 'nextinsurance.atlassian.net/rest/api/3/user/search?username=&maxResults=1000' \
--header 'Authorization: <redacted>'

 

3 answers

I have the same issue here. Also the option for Admins does not work. I am administrator from my instance and the emails are not shown.

@Angélica Luz Do we have a solution for this issue?

I need to extra the users information to comply with audit and makes no sense to do this by hand.

 

thanks in advance!!

0 votes

Hello @Jagadeesh Kumar,

Thank you for reaching out to the Atlassian Community!

The behavior you are experiencing is expected.

If the user selects the option “Only you and admins”, it’s expected that the API won’t return their email address, even if it’s an administrator using the API, but as an administrator, you will be able to view their email address via user management on the UI.

There is a feature request suggesting improvements for that:

Please, click on vote and also watch the ticket above to receive updates from our product managers.

Kind regards,
Angélica

That's why I hate Atlassian. The "behavior you are experiencing is expected", but it is not expected by your customers.

It is really unexpected behavior! It brakes my current integration. I have to ask all my Jira users to change their settings and share their email to everyone to fix this problem.

0 votes

Hello Nitin,

Thank you for reaching out to Atlassian Community!

Since the Atlassian account was introduced some years ago, administrators can't manage users' accounts anymore. 

With that said, users can choose if they want to let their profile picture, full name, email address and other information as public or private.

I tested the API using my local site and if the user set the email as private (only you and admins), it won't show when using the API, that's why the emailAddress show empty.

To fix this, the user must go to https://id.atlassian.com/manage-profile/profile-and-visibility and set the email visibility to Anyone.

Screen Shot 2020-03-06 at 15.08.54.png

Regards,
Angélica

Hello @Angélica Luz 

We are facing the same issue at our end. API returns email address in the response when visibility is set to 'Anyone'.

However, when set to 'Only you and admins', despite fetching user information via REST API using admin credentials, email address is missed out in the response & it is misleading.

Appreciate your valuable thoughts / suggestions. Thank you.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events