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.
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.
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...
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