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: « 8 [7] 6 5 4 3 2 1 » Show All

  1. This is just what we needed, THANK YOU! Now, is there any way modify the email that is sent to the users when their account is created?

  2. 104
    Mark

    Thanks for this plugin. Is it possible to modify it to allow existing users to be added to a blog. This would allow me to add my students to class specific blogs on an wpmu site which would be very helpful.

  3. This plugin fails if the password contains some special characters such as / . etc

    It gives Invalid username: error.

    Any fix for it?

  4. 102
    pipeops

    How do you modify the email that is sent to the users when their account is created?

  5. 101
    Matt

    Wordpress 2.8.4, plugin does not seem to work at all. Just changes back to the generic Tools screen and nothing has been imported. Tried both pasting data in and from a file…oh well. Any other way to do this, anyone is aware of?

  6. 100
    Rubens

    When I import the TXT file, the fields “firstname” and “lastname” remain blank. The users are recorded successfully with login, email, password and role, but the page shows the message: “No names entered in field”. Anyone have an idea to solve this?

  7. 99
    Mike

    I am sorry that I have made a mistake, this plug-in will not send newly added users emails automatically. Tks!

  8. 98
    Mike

    Thanks for making such great plug-in, may I know if I can import the users without sending them emails? Tks!!

  9. 97
    Lila

    Thank you so much for this plugin. I was dreading creating 200 new users by hand!
    But it took me a long time to find your plugin. Why not add it to the WordPress Plugin Directory?

    Again, thanks.

  10. 96
    Bradley

    Love the plugin and the enhancements. I was using a previous version modified by D’Arcy Norman at ucalgaryblogs that gracefully handled existing usernames and email addresses on import. I tried to modify the new one with his added code but couldn’t get it to function. I was hoping someone who actually understands php could help. That is a feature my user need in a school where students are imported to multiple teacher blogs. Thanks

  11. Users are being added successfully, but the password is auto-generated in each case…instead of the password I’ve specified.

    Any idea why this would be happening?

    I love the concept of this plugin and would like to use it to save a day’s worth of manual user input.

  12. 94
    Barry

    Great Plugin, thank you.

    To disable user notification, comment out line 204. I believe this is a wordpress-native function.

    In other words, type two slashes in front of the line, like so:

    // wp_new_user_notification($user_id, $password);

    Works with version 1.2

  13. Will this let me export from one WP install and import to another? I don’t want to have to write out all the roles by hand if I don’t have to!

  14. 92
    Kenny

    Hi, I found it:
    Tools -> DDImportUsers
    Thanks!!

  15. 91
    Kenny

    Thanks for the plugin! I activated it in WP2.8.1 (self-hosted) but it seems that I cannot find:
    Settings -> DDImport Users
    Please help, tks!!

Pages: « 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.