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