WordPress.org

Ready to get started?Download WordPress

Forums

Import Users from CSV
[resolved] User roles from CSV? (12 posts)

  1. wearepapertiger
    Member
    Posted 3 years ago #

    Hello,

    Was curious if you can also define a user's role within the CSV. We have 3 different roles and are possibly importing a few hundred users. Let me know if this is possible!

    Thanks for the awesome plugin,

    Jason

    http://wordpress.org/extend/plugins/import-users-from-csv/

  2. Ulrich Sossou
    Member
    Plugin Author

    Posted 3 years ago #

    Hello Jason,

    Yes, you can. Just call the field 'role'.

  3. Comenius
    Member
    Posted 2 years ago #

    I have a column 'role' with a value 'Author' but after import the User Profile shows 'No Role for This Site.' All the other user data is imported correctly.

    Also, you said the role column is included in the example.csv but it's not in the file I downloaded.

    This is with WP 3.2.1 and version 0.2.2 of your plugin.

  4. Ulrich Sossou
    Member
    Plugin Author

    Posted 2 years ago #

    Comenius, try lowercase 'author'.

  5. Comenius
    Member
    Posted 2 years ago #

    Ah, perfect, that worked. Thank you!

  6. Ulrich Sossou
    Member
    Plugin Author

    Posted 2 years ago #

    You are welcome.
    I will make it so that in the next version you don't have to enter it lowercase.

  7. SpaceDragon
    Member
    Posted 2 years ago #

    How about when a user role does not exist, but you wish to create a new one from the CSV? WordPress doesn't provide an interface to create or delete custom user roles…

  8. Ulrich Sossou
    Member
    Plugin Author

    Posted 2 years ago #

    Use a plugin like Members to create the roles.

  9. cnelbuendia
    Member
    Posted 2 years ago #

    Comenius, try lowercase 'author'.

    What would be the correct role "word" for Suscriber? I tried "suscriber" but it appears as "No Role For This Site".

    Thank you.

  10. Ulrich Sossou
    Member
    Plugin Author

    Posted 2 years ago #

    subscriber

  11. cnelbuendia
    Member
    Posted 2 years ago #

    Oh... thank you very much. Problems of language... As in Spanish it's written as Suscriptor y went ahead and forgot de 'b'.

    Thank you, and sorry for such a dumb question, next time i'll check
    wordreference first jeje.

  12. Ulrich Sossou
    Member
    Plugin Author

    Posted 2 years ago #

    No problemo

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic