Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • O open-build-service-debian
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • obs
  • open-build-service-debian
  • Merge requests
  • !23

Allow looking up users by an email address

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Andrej Shadura requested to merge andrewsh/email-lookup into collabora/main Aug 31, 2021
  • Overview 6
  • Commits 1
  • Pipelines 2
  • Changes 1

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 Sep 15, 2021 by Andrej Shadura
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: andrewsh/email-lookup