Extension:ImportUsers

The ImportUser extension adds special page, Special:ImportUsers, which can be used by bureaucrat (or others who have 'import_users' right) to import users from a CSV file to MediaWiki's user database.

Import File Format
The CSV file consists of four columns:


 * 1) username
 * 2) password
 * 3) email
 * 4) real name

Delimited with commas. For example:

user1,pass1,user1@gmail.com,User One user2,pass2,user2@gmail.com,User Two user3,pass3,user3@gmail.com,User Three user4,pass4,user4@gmail.com,User Four user5,pass5,user5@gmail.com,User Five user6,pass6,user6@gmail.com,User Six . . . userN,passN,userN@gmail.com,User Nnn

Duplicate/Collision handling
ImportUsers extension will never create duplicate user accounts.

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

Collision handling behavior is determined by the "Replace existing users" check box.

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.

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

Installation

 * 1) Download the source code, either via Special:ExtensionDistributor or directly from SVN
 * 2) Place the files in $IP/extensions/ImportUsers/
 * 3) Add  to your wiki's LocalSettings.php
 * 4) Installation can now be verified through Special:Version on your wiki

License
You are free to use this extension for any reason and mutilate it to your heart's liking. If you feel your work might benefit others, post your changes here.

55575654444766755643333355433547576567657656754545646546545476576567567565674545646476576678786767455553335678887654323456789543234567833456765432345678543223456789065433456789854323456789876532334567890987654334567897654324565345566765435789909008798656678750