how do I bulk-remove users from ML in MM3?
I just realized that "mailman members" only offers to "add members" via "-a filename" but I see no remove option.
-- Sr System and DevOps Engineer SoM IRT
I assume you mean from the command line, since mass remove can be done from the postorius interface for the list. Checking the 'mailman members -h', I don't see any options for mass removal (strange since add has a function). This might be a consequence of the way members are now tied to ownership in lists (changed from MM2>MM3).
Sincerely,
Andrew Hodder Systems Administrator Support Operations, Afilias E-mail: drew@afilias.info Phone: +1 416.673.4164 Fax: +1 416.646.1541
On Wed, Oct 25, 2017 at 3:08 AM, Dmitry Makovey <dmakovey@stanford.edu> wrote:
I just realized that "mailman members" only offers to "add members" via "-a filename" but I see no remove option.
-- Sr System and DevOps Engineer SoM IRT
Mailman-users mailing list mailman-users@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
On 10/25/2017 07:35 AM, Barry Warsaw wrote:
On Oct 25, 2017, at 03:08, Dmitry Makovey <dmakovey@stanford.edu> wrote:
I just realized that "mailman members" only offers to "add members" via "-a filename" but I see no remove option.
It’s true,
mailman members
doesn’t currently have a —remove option.
I found Rest API call for single user removal but I am questioning it's effectiveness given that I need to use this operation to potentially remove 1500 members
-- Sr System and DevOps Engineer SoM IRT
Postorius is currently using this to mass unsubscribe. AFAIK there is an open issue in core to add such functionality
On October 25, 2017 5:59:46 PM GMT+02:00, Dmitry Makovey <dmakovey@stanford.edu> wrote:
On 10/25/2017 07:35 AM, Barry Warsaw wrote:
On Oct 25, 2017, at 03:08, Dmitry Makovey <dmakovey@stanford.edu> wrote:
I just realized that "mailman members" only offers to "add members"
via
"-a filename" but I see no remove option.
It’s true,
mailman members
doesn’t currently have a —remove option.I found Rest API call for single user removal but I am questioning it's effectiveness given that I need to use this operation to potentially remove 1500 members
-- Sr System and DevOps Engineer SoM IRT
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
On 25-Oct-17 12:05, Simon Hanna wrote:
Postorius is currently using this to mass unsubscribe.
AFAIK there is an open issue in core to add such functionality
Yes, see https://gitlab.com/mailman/mailman/issues/419
Yes, the current API has a number of scaling issues. Delete is bad, but other operations can require multiple API calls... (e.g. get state to conditionally create; create+patch; create user+create subscription, ...) https://gitlab.com/mailman/mailman/issues/367 (and others)
Mass modify is also missing - https://gitlab.com/mailman/mailman/issues/241 notes one such case.
On October 25, 2017 5:59:46 PM GMT+02:00, Dmitry Makovey <dmakovey@stanford.edu> wrote:
On 10/25/2017 07:35 AM, Barry Warsaw wrote:
On Oct 25, 2017, at 03:08, Dmitry Makovey <dmakovey@stanford.edu> wrote:
I just realized that "mailman members" only offers to "add members" via "-a filename" but I see no remove option. It’s true,
mailman members
doesn’t currently have a —remove option. I found Rest API call for single user removal but I am questioning it's effectiveness given that I need to use this operation to potentially remove 1500 members-- Sr System and DevOps Engineer SoM IRT
On 10/25/2017 12:08 AM, Dmitry Makovey wrote:
I just realized that "mailman members" only offers to "add members" via "-a filename" but I see no remove option.
I've created an (ugly) implementation of what I needed:
https://gitlab.med.stanford.edu/irt-public/mailman-tools
tools are built mostly to deal with docker deployment, but don't have to be that way)
sync_users.py will take anything from stdin and synchronize member list received on stdin with member list in MM adding/removing users. This should reduce number of calls and execution times.
-- Sr System and DevOps Engineer SoM IRT
participants (5)
-
Andrew Hodder
-
Barry Warsaw
-
Dmitry Makovey
-
Simon Hanna
-
tlhackque