Mediawiki create and Promote user
Jump to navigation
Jump to search
createAndPromote.php is a script that creates a new user and auto-promotes them to sysop and/or bureaucrat status. There is also an option to promote a user who already exists. If you still use MediaWiki 1.16 or older, you may need to create
Usage
Option/Parameter |
Description |
---|---|
--help |
Display help information for the script |
--bureaucrat |
Add the account to the bureaucrat group |
--sysop |
Add the account to the sysop group |
--bot since 1.22 |
Add the account to the bot group |
--force |
If account exists already, just grant it rights or change password. |
<username> |
The name of the user you want to create or promote. The --force flag is required if a user with this name already exists. |
<password> |
The password for the user. Not required if --force is used. |
Example
php createAndPromote.php --bureaucrat --sysop WikiSysop mypassword php createAndPromote.php --force --sysop --bureaucrat useranda passanda