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)