Forums

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

How can I get user email other than logged in user from Jira REST API ?

dhrupkumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 18, 2020

Right now I am using this API.


https://<%Instance URL%>/rest/api/2/user/search?accountId=<%accountId%>

But In response, I am getting user information except for Email addresses of the respective users.

1 answer

0 votes
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 21, 2020

Hello @dhrupkumar ,

There are some major changes in place that is part of user privacy changes for GDPR compliance that obfuscate all usernames and Emails and they have been removed from the API endpoints and replaced with the account ID and tying them together from external sources is intentionally blocked as part of the compliance.

Please refer to the depreciation notice for the full details:

The endpoint you are hitting is going to have a security setting where you can only return the active users email address, to tie a user email to an account id you need to use the new v3 email endpoint and the account id of the desired user, detailed here:

However, do note that if you hit the endpoint directly you will encounter the error:

Requestor must be a whitelisted app (not a user).

At this time, this is an Experimental API and endpoints with the experimental tag, will require you to build a app using Atlassian Connect framework detailed below, but again this will return the values to the front end of the application through the connect add-on:

Regards,
Earl

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events