You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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>'
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!!
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.
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.
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.
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.