Allow looking up users by an email address
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
Please register or sign in to reply