||The author of this extension is no longer maintaining it! Meaning any reports for additional features and/or bugfixes will more than likely be ignored. Volunteers are encouraged to take on the task of developing and maintaining it. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's
Release status: beta
|Implementation||Special page, User identity, Database|
|Description||Allows to import users in bulk from a CSV file|
|Author(s)||Rouslan Zenetl, Yuriy Ilkiv|
|Latest version||1.2 (2011-03-27)|
Translate the ImportUsers extension if possible
|Check usage and version matrix; code metrics|
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[edit | edit source]
The CSV file in UTF-8 consists of four columns:
- real name
Delimited with commas. For example:
user1,pass1,firstname.lastname@example.org,User One user2,pass2,email@example.com,User Two user3,pass3,firstname.lastname@example.org,User Three user4,pass4,email@example.com,User Four user5,pass5,firstname.lastname@example.org,User Five user6,pass6,email@example.com,User Six . . . userN,passN,userN@gmail.com,User Nnn
Duplicate/Collision handling[edit | edit source]
ImportUsers extension will never create duplicate user accounts.
- What is account collision?
Two accounts are in collision (or are duplicates of each other) if their login names (user names) are equal.
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[edit | edit source]
- Copy the code into files and extract the files in a directory called
extensions/folder. If you're a developer and this extension is in a Git repository, then instead you should clone the repository.
- Add the following code at the bottom of your LocalSettings.php:
require_once( "$IP/extensions/ImportUsers/ImportUsers.php" );
- Done – Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.
Maintenance[edit | edit source]
License[edit | edit source]
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.
Extended Version[edit | edit source]
See the Talk page for an extended version providing capabilites to
- add users to a group
- notify users by e-mail