Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get emailAddress of user with REST API

Andrew Culver
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 2, 2018

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:

https://jiradev.uwo.ca/rest/api/2/user?username=aculver

This returns:

{"self":"https://jiradev.uwo.ca/rest/api/2/user?username=aculver","key":"aculver","name":"aculver","avatarUrls":{"48x48":"https://jiradev.uwo.ca/secure/useravatar?ownerId=aculver&avatarId=10830","24x24":"https://jiradev.uwo.ca/secure/useravatar?size=small&ownerId=aculver&avatarId=10830","16x16":"https://jiradev.uwo.ca/secure/useravatar?size=xsmall&ownerId=aculver&avatarId=10830","32x32":"https://jiradev.uwo.ca/secure/useravatar?size=medium&ownerId=aculver&avatarId=10830"},"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: https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-user-get 

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?

1 answer

1 accepted

1 vote
Answer accepted
Thomas Deiler
Community Champion
February 2, 2018
Andrew Culver
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 5, 2018

Thanks. When I first posted this, within a few minutes, it was marked as spam and removed from the list of recent questions. So I posted again. Looks like this has since been unmarked as spam.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events