No emailAddress in response to JIRA API '/myself' and GET '/user' endpoints

Hello,


I am working on a Cloud JIRA add-on, we have encountered a case when JIRA user does not have an email associated with him in his profile. Since the add-on relies on user email for correct operation, it is problematic. 
The response to REST API '/myself' and '/user' endpoints does not contain emailAddress field.
User profile page does not have email field as well (it is not empty, the field is not displayed), although when user selects to edit his profile page, the edit popup has an email field and it contains a valid email.
Also, when the user page is viewed under User Management, email field is displayed and contains valid email.
Based on the above, user email seems to be set but is not available in user profile and is not returned in JIRA REST API endpoints.
Questions: 
1. Is there other API endpoint that can be used to retrieve user email for correct add-on operation in this case? This would allow resolving the issue programatically.
2. Is there anything user can do to set email in his profile so will be returned in the endpoints.
User logs in to JIRA using Google's Single Sign On for Atlassian Cloud. 

Please let me know if additional information is required to resolve this issue.
Thank you.
Irena Shemesh

1 answer

0 vote
Andreas Knecht Community Champion Feb 21, 2017

Hey Irena,

Can you check Global Admin > General Settings for e-mail visibility settings?  It's most likely set to hidden which can cause this I think:

Edit JIRA Configuration - JIRA 2017-02-22 08-10-14.png

I don't think there's much the individual user can do in this case.  A global admin would have to change visibility.

Cheers,

  Andreas

Hi Andreas, thank you for the information! Think this is the source of the problem we saw.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

207 views 1 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you