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 |
Fix Released
|
Medium
|
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.
Changed in mailman: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Barry Warsaw (barry) |
milestone: | none → 3.0.0a8 |
Changed in mailman: | |
status: | Confirmed → In Progress |
Changed in mailman: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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.