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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.