Allow looking up users by an email address
1 unresolved thread
1 unresolved thread
Looking up users by an email address is necessary for e.g. authentication mediator to work.
This does not pose any greater privacy or security risk than the currently available APIs, since they already allow finding a user by their email address, albeit much slower (list all users, iterate over users, request emails; possible to optimise by first checking users with usernames similar to their email addresses).
Apparently this works:
$ osc api "/search/person?match=@email='hvogel@suse.com'"
<collection matches="1">
<person>
<login>hennevogel</login>
<email>hvogel@suse.com</email>
<realname>Hendrik Vogelsang</realname>
<state>confirmed</state>
<globalrole>Staff</globalrole>
</person>
</collection>
Edited by Andrej Shadura
Merge request reports
Activity
Right, the upstream 1) doesn’t like this idea in general, 2) points out this functionality already exists.
Closing.
Please register or sign in to reply