Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Version 1.2   Updated Thursday, February 19th, 2009 at 7:19pm

Import Users Plugin for WordPress

This plugin was created for people who need to easily add multiple users to their WordPress installation. Simply give it a list of usernames and email addresses, specify the role of the users (subscriber, author, admin, etc.) and it does the rest. It will automatically email each user and give them their randomly generated password, or let you specify one. It also has validation in place to make sure the usernames do not already exist, that the email addresses are not already in use, that the usernames are valid, etc. After it processes the information, it tells you how many were added, and upon error, gives you the reason why each failed.

Download

  If you have found this page useful, please consider donating. Thanks!

Changelog

  • 02-19-09 Version 1.2 – Updated modified version with contributions by Robert McKenzie (Thanks Robert!). Changes include the ability to specify a password, as well as first/last names.
  • 06-12-07 – Modified version by Nicholas LaRacuente added (download link above).
  • 05-03-07 Version 1.1 – Updated to take advantage of the customizable roles feature in WordPress 2.1. This update was contributed by Tom Ransom.
  • 08-06-06 Version 1.0 – First release.

Instructions

  • Download the above file, rename it from .txt to .php, and upload it to your plugins directory.
  • Enable the plugin.
  • Use it by going to ‘Settings -> DDImport Users’

Usage

The userdata is entered in the following format:

username|firstname|lastname|password|email|role
username|firstname|lastname|password|email|role
username|firstname|lastname|password|email|role
etc…

To clarify, that is one user per line, with a pipe character between the values. Extra whitespace and empty lines are trimmed automatically. Be sure your data is entered properly! If you do not want to assign a password, first name, or last name, just do not enter them. The field separators are still required. Example:

username||||user@domain.com|

After you have added your user data, you can choose the role for the users with the drop down box. The choices are: Subscriber (default), Contributor, Author, Editor, and Administrator.

If the password is not specified, one will be randomly generated. In either case, the password is emailed to the user.

Pages: [9] 8 7 6 5 4 3 2 1 » Show All

  1. Hi, thanks for the great plug-in. I was wondering if there was an easy way to comment out the portion of the plug-in that emails the user their password and username. If so, could you advise as to which portion to comment out?

  2. 126
    Byll

    help ???help ???

    Errors!
    # Invalid email address: Username|Firstname|Lastname|first_last@yahoo.com|Subcriber|
    # Invalid username: Username|Firstname|Lastname|first_last@yahoo.com|Subcriber|

    i am getting this error on wp 3.0.1

    help ???

  3. Thx! You’re saving me a lot of manual work – I have got a list of conference visitors, everyone gets an account for the site. Didn’t fint anything on wp.org – but luckily, big G took me here :-)

  4. 124
    MaryJo

    I installed the plugin and added two new users to test how it works. It added the users, but hasn’t sent the email notifications (unless for some reason it takes more than an hour to generate those). This plugin sounds like it will be the best solution for my needs, but it’s crucial that the email notification thing works. So I’m stumped.

  5. 123
    Curtis

    This may have been asked before, but I was curious if I can setup new users with this plugin without having WordPress automatically email everyone with their username and password? (I’d prefer to do this outside WordPress after testing.)

  6. We supply all kinds of moncler boots,moncler bags,moncler coats,moncler jackets,moncler T-shirt,moncler vest and so on.We have got a good reputation pf our products with top quality and good price.We sincerely look forward to futher cooperation with you for mutual benefits.We are sure that you will find working with us is a pleasant, time-saving and profitable experience. Please feel free to contact us if you have any questions.Our website is http://www.newlyapparel.com.

  7. 121
    espressoguy

    Yes, I’m seeing the same error mentioned in post #118 (Dillip). I install in 2.9.2 …the users get imported but when one tries to log in, user gets the message:

    “You do not have sufficient permissions to access this page.”

    …in fact the user is apparently logged-in but there is still an error message.

Pages: [9] 8 7 6 5 4 3 2 1 » Show All

Leave a Comment

Before you comment: If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.


Be sure to wrap all code in <code></code> tags.