Expose REST API call to look up member/user id given an email address

Bug #799612 reported by Florian Fuchs
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Barry Warsaw

Bug Description

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.

Barry Warsaw (barry)
Changed in mailman:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Barry Warsaw (barry)
milestone: none → 3.0.0a8
Revision history for this message
Barry Warsaw (barry) wrote :

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.

Barry Warsaw (barry)
Changed in mailman:
status: Confirmed → In Progress
Revision history for this message
Barry Warsaw (barry) wrote :

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
Barry Warsaw (barry)
Changed in mailman:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers