Jump to content

Manual:demoteIneligibleUsers.php

From mediawiki.org

demoteIneligibleUsers.php is a maintenance script that is located in the maintenance directory used to demote users from user groups if they do not meet the specified requirements set in $wgRestrictedGroups .

Parameters

[edit]
Option Description Required
--dry-run If set, the script will perform no actual changes, just print the list of users and groups that would be affected Optional
--relay-log Pairs of groups and wikis where a replicated log entry should appear for demotions from that group Optional

Usage

[edit]

The script can be invoked without any command-line arguments, like below:

Terminal

On Wikimedia wikis, where changes to certain groups are expected to be logged to Meta-Wiki, a setup like below is used:

Terminal