[Bug 799612] [NEW] Expose REST API call to look up member/user id given an email address

Public bug reported:
In order to find out the internal member ID of an email address one currently has to iterate over the whole member roster. While this works fine it's certainly not the most efficient way to retrieve the ID. It would be great to have a REST-exposed mechanism to look up a member (or user) ID directly.
** Affects: mailman Importance: Undecided Status: New
** Tags: mailman3

** Changed in: mailman Status: New => Confirmed
** Changed in: mailman Importance: Undecided => Medium
** Changed in: mailman Assignee: (unassigned) => Barry Warsaw (barry)
** Changed in: mailman Milestone: None => 3.0.0a8

Hi Florian, can you provide some clarification on exactly what you need? Here's what you can do right now in the REST API:
Given an email address, you can get a list of all that's address's memberships. You get a sequence of member entries, and from each of these you can find its mailing list, role, and member id. So while you'd still have to do a search, it should be of a much smaller set.
Note that to identify a "membership", you need the triplet of address- or-user[*], mailing list, and role.
[*] You can now provide a user as long as the user has a preferred address.

** Changed in: mailman Status: Confirmed => In Progress

http://.../members/find now supports POSTing with
- email address (required) - fqdn listname (optional) - MemberRole (optional)
which can be used to find memberships. Returns a collection of member records.
** Changed in: mailman Status: In Progress => Fix Committed

** Changed in: mailman Status: Fix Committed => Fix Released
participants (2)
-
Barry Warsaw
-
Florian Fuchs