Skip to content

List admin update through the command line

Created by: dverdin

See Issue #524 for discussion.

The aim of this PR is to give administrators the possibility to update list administrators (owners or editors) through the command line. The idea here is to be able to change details of a list administrator (visibility, privileges, etc.) in one operation, witout having to delete, then add it. It alos allows to replace a user by another one, keeping all previous details except if told otherwise. As it is based on a Request handler, it also introduces the possibility to do so through the Sympa API (SOAP, and later REST). It is complemented by two other PR, allowing deletion and addition of list admins.

Adding : - a Request handler dedicated to list admin update, - a sympa.pl command line option to update a list admin, based on this handler, - tests for the handler module.

The command line allows the following options:

--update_list_admin --current_email=user@example.com (--list=list@domain | --robot=robot ) [ --new_email=new_user@example.com --role=role --profile=privileged|normal --info=<description> --visibility=conceal|noconceal --reception=mail|nomail --gecos=<a gecos> ]

Updates a list admin, either replacing it with a new user (if "--new_email" is given and is different from "--current_email") or simply updating her informations.

- "--current_email" is the list admin's email address. It is mandatory.
- Either "--list" or "--robot" is mandatory.
- If no "--role" is given, all administrative roles will be updated (both editor and owner).

Merge request reports