I’m working on an integration where I need to retrieve the email addresses of users assigned to a Jira project. Here's what I’ve done so far:
I added a user to a Jira project via the Jira UI.
Then, I used the following API to get the list of assignable users for that project:
GET /rest/api/3/user/assignable/search?project=PROJECT_KEY
I received the list of assignable users successfully, including their accountId, displayName, etc.
However, the email address is missing from the response.
I also tried using this endpoint:
GET /rest/api/3/user/email?accountId=USER_ACCOUNT_ID
But I received the following error:
Client must be authenticated to access this resource.
I will attach a sample response that i have got: