User API does not provide email address detail
Summary
Hit the URL https://<>/api/v4/users/ It is returning all the user details except email address.
Steps to reproduce
- Sign in to gitlab server.
- Go to URL https://<>/api/v4/users/ in the browser
- Check the JSON returned of user details.
- User detail has all the information except email address.
(What actually happens)
Users API should return email address of the
(What you should see instead)
No email adress detail after query user information over version 4 REST API.
Output of checks
{"name":"Swapnil Gangrade","username":"sgangrade","id":337,"state":"active","avatar_url":"https://secure.gravatar.com/avatar/3242b94a24a3c7f12ba2565b19d80622?s=80&d=identicon","web_url":"https://gitlab.example.com/sgangrade","created_at":"2017-10-10T04:55:49.961Z","bio":null,"location":null,"skype":"","linkedin":"","twitter":"","website_url":"","organization":null}
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:env:info
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
Add email detail to User API.