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.