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

Get emailAddress of user with REST API

I'm using the REST API to get the user object from an instance running Jira 7.7.0. I'm using my own credential (full administrator permissions) and searching for myself:

This returns:

{"self":"","key":"aculver","name":"aculver","avatarUrls":{"48x48":"","24x24":"","16x16":"","32x32":""},"displayName":"Andrew Culver","active":true,"timeZone":"America/Toronto","locale":"en_CA","groups":{"size":7,"items":[]},"applicationRoles":{"size":1,"items":[]},"expand":"groups,applicationRoles"}

No emailAddress attribute, which should be there according to the REST API docs: 

I've run the same REST call against two older instances running 6.3.13 and 7.3.6. Both return the emailAddress attribute.

How do I get the email address of a user with the REST API in 7.7.0?

I just posted this 10 minutes ago and it was marked as spam and removed from the list of questions. This isn't spam! :|

2 answers

1 accepted

The global setting User email visibility was set to hidden in the 7.7.0 instance. Even though I was using the API as a system administrator user, and that user is able to view email addresses in the GUI, they remain hidden in the API unless that setting is changed.

Changing that setting allowed the emailAddress attribute to appear in the API.

I've asked Atlassian if this is working as intended or not.

1 vote
Thomas Deiler Community Leader Feb 02, 2018

Dear @Andrew Culver,

what I first noticed, that the upper link points to a cloud api doc - cloud an server react differently.

But, if your result is not looking like the example of GET /rest/api/2/user, then I think you have discovered a bug.

So long


Thanks. I did look at the latest server API doc as well, after posting.

I have opened a support case with Atlassian.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Apr 09, 2019 in Portfolio for Jira

Portfolio for Jira 3.0 is here!

The wait is over... Portfolio for Jira Server and Data Center 3.0 is now officially here! Platform releases offer Atlassian an opportunity to shift our strategy, make bold predictions about t...

1,264 views 12 24
Read article

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