Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

User's email not returned as part of REST API's /rest/api/2/users resource request

Matias Fidemraizer July 29, 2014

I'm performing requests against /rest/api/user?username=[some user name] and I'm facing two issues:

  1. Documentation says "username" query string parameter might be either an user name or email, but when I look for some user by email, response has no results.
  2. When I perform a request against the /rest/api/user resource by user name (not email), it returns the whole user JSON, but it doesn't include user's email address.

About "2", I've tried to give administrative permissions to the authenticated user who's performing such search requests with no luck.

How do I get user's email through REST API?

Thank you in advance!

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Bhushan Nagaraj
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 29, 2014

Hey Matias,

Could you please point me to the documentation that states you can pass the email address? From the REST Documentation, I only see that email address or user key can be passed as parameters. Take a look at https://docs.atlassian.com/jira/REST/latest/#d2e3826

Regarding the email address not being displayed, have you checked your settings for email address visibility? Take a look at https://confluence.atlassian.com/display/JIRA/Configuring+JIRA+Optionsand look for "User email visibility".

TAGS
AUG Leaders

Atlassian Community Events