From MediaWiki.org
Jump to: navigation, search
This extension is bundled with MediaWiki 1.18 and above. Thus you do not have to download it again.
MediaWiki extensions manual
Crystal Clear action run.png

Release status: stable

Implementation User identity, Special page, Hook
Description Provides a special page that allows user accounts to be renamed
Author(s) Ævar Arnfjörð Bjarmasontalk
Latest version continuous updates
MediaWiki 1.19+
PHP 5.3+
Database changes No
License GNU General Public License 2.0 or later
Added rights


Hooks used


Translate the Renameuser extension if it is available at translatewiki.net

Check usage and version matrix; code metrics


Open tasks · Report a bug

The Renameuser extension provides a special page which allows authorized users to rename user accounts. This will cause page histories, etc. to be updated. If you want to rename an account "into" another, already existing one, you need the User Merge and Delete extension.

Installation[edit | edit source]

  • Download and place the file(s) in a directory called Renameuser in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'Renameuser' );
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing extensions using wfLoadExtension(), since MediaWiki 1.25. If you need to install this extension in earlier versions, instead of wfLoadExtension( 'Renameuser' );, you need to use:

require_once "$IP/extensions/Renameuser/Renameuser.php";

(To run an extension on an earlier release, you may need to download the version of it tagged for that release from Special:ExtensionDistributor.)

Usage[edit | edit source]

  1. As a bureaucrat, access the Special:Renameuser page
  2. Enter the name of the user to be renamed, and the desired new name, toggle the options to move user/talk pages and their subpages and to create redirects as desired, and click OK

The user will be renamed, and (if the appropriate option was checked) the user page, user talk page and all their subpages will be moved as well.

The ability of this extension to move user subpages does not depend on 'move-subpages' userright. The number of subpages moved is not limited by the $wgMaximumMovedPages parameter. The extension will also move all css, js and move-protected pages.

You can grant other groups the right to rename users, for example:

$wgGroupPermissions['sysop']['renameuser'] = true;

Note Note:

  • In case CentralAuth is installed, you'll get a warning if you try to rename a local user from an account attached to a global account or to a username reserved by a global account; a check box to rename anyway will be provided (this requires caution). You should probably use CentralAuth's built-in Special:GlobalRenameUser and Special:GlobalRenameRequest/Special:GlobalRenameQueue.
  • You will not be able to rename users to invalid usernames (which doesn't equal usernames which match a blacklist but includes for instance reserved usernames).

RenameUserComplete hook[edit | edit source]

This extension introduces and invokes the RenameUserComplete hook to notify other extensions of user renames.

Frequently asked questions[edit | edit source]

There were so many userpages that it timed out partway through moving them from User:A/subpage... to User:B/subpage... What do I do now?[edit | edit source]

You can't fix the situation by immediately trying again to rename User A to User B, because it will simply say "The user 'User A' does not exist." To fix the situation, rename User B back to User A, after unchecking the box "Move user and talk pages (and their subpages) to new name". Then rename User A to User B again, this time leaving the box "Move user and talk pages (and their subpages) to new name" checked. The page moving will resume where it left off.

Log actionsManual:Log actions Events: BlockingManual:Block and unblockImportingManual:Importing revisionsMerging historiesManual:Merging historiesPage deletionManual:Page deletionPage movingManual:Page movingPage restorationManual:Page restorationPatrollingManual:PatrollingProtectionManual:ProtectionRenaming a userExtension:RenameuserRevisionDeleteManual:RevisionDeleteThankingExtension:ThanksUploadingManual:UploadingUser creationManual:User creationUser rights managementManual:User rights
Miscellaneous: APIAPI:Logeventslogging tableManual:Logging tableNull revisionManual:Null revision
Language: English  • 日本語 • 한국어 • português • português do Brasil