Allow gitlab.com Group Owners to obtain users' email addresses via the Users API
Problem to solve
When enterprises are gitlab.com users, they do not have a way to quickly obtain the email addresses from the users in their group.
Target audience
gitlab.com group owners
Further details
A .com customer has subgroups and users. As the owner and the 'administrator' for the organization, the user would like to be able to somehow gather either via the UI, or via the API, the email addresses of everyone in their group.
Currently, the API call to get the email address for users is only available to Administrators.
Proposal
Allow non-admins to get obtain user email addresses via the users API.
OR
Allow Group Maintainers to have Admin-only Users API Access for Enterprise Users.
What does success look like, and how can we measure that?
Allow Group owners to gather email addresses of the members via the API, or via the UI. This will allow them to more easily audit users.
This should include all email addresses, not just primary.
"Workaround"
It's possible to get a list using an admin account with the Users API (internal example), or through rails console (internal example).