Extension:ImportUsers

The ImportUsers extension adds special page, "Special:ImportUsers", which can be used by bureaucrats (or other users who have the  permission) to import users from a CSV file to MediaWiki's user database.

Import File Format
The CSV file in UTF-8 without BOM encoding consists of four or five columns, delimited with commas:
 * 1) username
 * 2) password
 * 3) email
 * 4) real name
 * 5) user groups (optional, maybe multiple)

user1,pass1,user1@example.org,John Doe user2,pass2,user2@example.org,Jane Doe,editor user3,pass3,user3@example.org,Jonnie Doe,editor, staff
 * Example:

Duplicate/Collision handling
This extension will never create duplicate user accounts. Collision handling behavior is determined by the "Replace existing users" check box.

Two accounts are in collision (or are duplicates of each other) if their login names (user names) are equal.
 * What is account collision?


 * What can be done?
 * When "Replace existing users" check box is clear (unchecked), ImportUsers extension will ignore records in the input file which are duplicates of existing accounts.
 * When "Replace existing users" check box is checked, ImportUsers extension will update corresponding accounts with data from input file.

MediaWiki tolerates duplicate email addresses. In other words, there may be multiple accounts connected to the same email address. This extension will not validate for duplicate email addresses.

Maintenance
After importing users you might want to run initSiteStats.php (MW ≥ 1.21.x) or initStats.php (MW ≤ 1.20.x) to update the statistics of your wiki on registered users.

Issues and feature requests
Issues and feature requests may be reported or tackled at GitHub.