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)
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.
/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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looking at the endpoint you mentioned:
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), ...?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.