User email addresses not coming through API

Gareth Ivatt January 28, 2025

We've retrieved some JIRA tasks and JIRA users for our customer from the JIRA API using a personal access token they connected, but the email addresses of the users did not get retrieved. (We've never run into this issue before with other customers. The email addresses are always returned.

The user that created the personal access token is an Admin.

In the JIRA UI they are able to see the email addresses of all users. So it seems that they have email visibilty, which the token should inherit?

However the token seems to not have access to the emails.

How can we troubleshoot this? It's not clear what setting needs to be changed, since they already can see the emails in the UI.

endpoint: (/api/3/users/search)

1 answer

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 28, 2025

Hello @Gareth Ivatt 

Which API endpoint are you using to get the user information?

I would start by reviewing the documentation for that endpoint to see if a) the API is capable of returning the information and b) you are using it correct such that email address would be included in the output.

Gareth Ivatt January 28, 2025

/api/3/users/search

Yes, it does return the user email usually.

And for this token, it did return it for 2 users out of ~200

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 28, 2025

Looking at the endpoint you mentioned:

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search/#api-rest-api-3-user-search-get

I see this in the description:

Privacy controls are applied to the response based on the users' preferences. This could mean, for example, that the user's email address is hidden. See the Profile visibility overview for more details.

Check out the Profile Visibility Overview page also, as that provides more details that may be important to your scenario.

When you say the supplier of the PAT already sees the emails in the UI, which UI is that person using? Which page are they looking at - a Project Access/People page, a page in the admin hub (admin.atlassian.com), ...?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events