Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List admins deletion through the command line #902

Closed
wants to merge 5 commits into from

Conversation

dverdin
Copy link
Contributor

@dverdin dverdin commented Mar 4, 2020

See Issue #524 for discussion.

The aim of this PR is to give administrators the possibility to delete list administrators (owners or editors) through the command line.
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 addition and update of list admins.

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

The command line allows the following options:

sympa.pl --delete_list_admin [email protected] --list=list@domain|--robot=domain [ --role=role ]

- "--email" is the list admin's email address. It is mandatory.
- "--role" may specify "owner" or "editor". If "--role" is absent, both values are used.
- You must specify either "--list" or "--robot". If you specify "--robot", the user is removed from the role in all this robot's lists.

Please note that this command WILL NOT remove the user if it is the last list owner.

@ikedas
Copy link
Member

ikedas commented Nov 12, 2021

Obsoleted by PR#1251. Close.

@ikedas ikedas closed this Nov 12, 2021
@dverdin dverdin deleted the delete_list_admin branch November 28, 2022 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants