It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Unable to get users emails from rest API

Is there a way to get an email of a user (by account id) or email of all users via rest API (https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-users-search-get or https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-user-get)?

In the example of https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-user-get it shows that email address field is returned, however when I execute it there is no such field.

We use Jira Cloud and access it via basic authentication by using a user access token.

 

We have a script which looks at the comments and gets some information and we require to get email addresses of the users to be able to match them to our systems.

 

Would love to receive some help on this!

1 answer

1 accepted

0 votes
Answer accepted
Warren Community Leader Feb 14, 2020

Hi @igor 

Some changes were made last year, for privacy reasons, which removed certain details that used to come back from API calls. E-mail address is one of them, so I don't think you'll be able to easily get it.

Each Jira user can set up, via their profile, the visibility of their details. Go to this link and at the bottom is how your e-mail address is visible to others. By default, you shouldn't be able to see e-mail address - see below

 

Screenshot_2.jpg

Thanks for the information. It would be useful if the admins could control this information and also have maybe another level of visibility: everyone on the team is able to see the email to be less visible than everyone.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

2,175 views 10 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you