Skip to content
Snippets Groups Projects

Allow looking up users by an email address

Closed Andrej Shadura requested to merge andrewsh/email-lookup into collabora/main

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading