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

Your Points Tracker
Challenges
Leaderboard
  • 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
Recognition
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?
Kudos
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

Not getting user's emailAddress in user object in API response Edited

Hi,

I am site admin and using REST API to fetch user information, as part of the response I see

- if user have set the visibility of emailAddress to 'Anyone' then response contain emailAddress.

- And if user have set visibility of emailAddress to 'Only you and admins' then API response does not contain emailAddress.

 

Why is it so? If calling API using org-admin/site-admins who have the visibility of emailAddress then it should get in the response.

 

Please help me to understand this and if there is any other way to get the emilAddress of user.

 

Note: Tried with org-admin/site-admin API token who has managed accounts.

1 answer

0 votes
Prince Nyeche Community Leader Apr 30, 2021

Hi @Vivek Gupta 

This is as a result of GDPR and that's the expected behaviour on Atlassian cloud. If you require access to an email, it is either you're using a connect app which in turn you must have made an official request to Atlassian for the email API otherwise via your standard REST request the emailAddress field will be hidden. Therefore the only way as you've mentioned to access it, is having the user declare their emailAddress to anyone on their profile visibility. Read the article provided on the link above to get more explanation.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Staying organized with Jira: best practices for a better project management

Project managers know this problem: A “mountain of work” lays in front of you, and you don’t know how and where to tackle them. Different to-dos lie ahead, but just one task after the other can be ha...

252 views 2 1
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