Title: Adding Role
Last modified: July 3, 2019

---

# Adding Role

 *  Resolved [drt2de](https://wordpress.org/support/users/drt2de/)
 * (@drt2de)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/adding-role/)
 * Hello I started to use this plug in for the first time today, and tested with
   1 line from CSV file.
 * The test user was registered correctly but somehow I find unknown error under
   the user name and,, The role becomes blank as a result. Please kindly find 2 
   pics.
 * [Screenshot1](http://prntscr.com/oa9298)
    [Screenshot2](http://prntscr.com/oa930q)
   [Screenshot3](http://prntscr.com/oa93bx)
 * I dont understand what [Invalid role (array)] message is, and the reason why 
   this is shown under the Username, as a result, the roles cannot be registered…
 * I am really in trouble.. I am really hoping to get kind help!
    Best regards Fuji
    -  This topic was modified 6 years, 11 months ago by [drt2de](https://wordpress.org/support/users/drt2de/).
    -  This topic was modified 6 years, 11 months ago by [drt2de](https://wordpress.org/support/users/drt2de/).
    -  This topic was modified 6 years, 11 months ago by [drt2de](https://wordpress.org/support/users/drt2de/).
    -  This topic was modified 6 years, 11 months ago by [drt2de](https://wordpress.org/support/users/drt2de/).

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/adding-role/page/2/?output_format=md) 
[→](https://wordpress.org/support/topic/adding-role/page/2/?output_format=md)

 *  Thread Starter [drt2de](https://wordpress.org/support/users/drt2de/)
 * (@drt2de)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/adding-role/#post-11699104)
 * Hello,
    I also realized the authorization [array] was given to this test account,
   this is not my intention.. [Screenshot4](http://prntscr.com/oae4c1)
 * I have to import 300 new users at once in one day.
    In order to get rid of [array],
   I simply have to open each account and un-tick [array] one by one..? I hope there
   is better way to solve this.. Looking forward to hear your kind help.. Many thanks
   Fujii
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/adding-role/#post-11699233)
 * [@drt2de](https://wordpress.org/support/users/drt2de/),
 * Good morning, how are you including roles in the CSV?
 *  Thread Starter [drt2de](https://wordpress.org/support/users/drt2de/)
 * (@drt2de)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/adding-role/#post-11699301)
 * Javier!
    Good morning, I tried like this [Screenshot5](http://prntscr.com/oaf09x)
 * On the 1st line, I added “Role”
    and name of the role include chinese charactor.
   No tick on [Default roles]
 * The result is
    [Screenshot6](http://prntscr.com/oaf1st) [Screenshot7](http://prntscr.com/oaf2fn)
   [Screenshot8](http://prntscr.com/oaf322)
 * If possible, I would like to give them as [Default role]..
 * I am using Ultimatemember plug in, could this be a problem..?
 * Many thanks!
    Fujii
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/adding-role/#post-11699317)
 * This is not correct, you have to use the “Role slug” and no the “Role name” as
   you are using (this is explained in the documentation tab).
 * Find you role slug and use it to avoid this problem.
 *  Thread Starter [drt2de](https://wordpress.org/support/users/drt2de/)
 * (@drt2de)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/adding-role/#post-11699392)
 * Thank you Javier,
    but is there anyway to use [Default role] instead of Role 
   slug in the spread sheet? [Screenshot9](http://prntscr.com/oaffgf)
 * I need to give Default role,,
    Also, I want to delete [Array] authorization somehow.(
   as Screenshot4 in previous message)..
 * Anyway, I will try to find Role slug to try.
 * Many thanks
    Fujii
 *  Thread Starter [drt2de](https://wordpress.org/support/users/drt2de/)
 * (@drt2de)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/adding-role/#post-11699543)
 * Dear Javier
 * I tried like this,
    [Screenshot10](http://prntscr.com/oafxrc) [Screenshot11](http://prntscr.com/oafz2f)
   [Screenshot12](http://prntscr.com/oafzms)
 * I just could not find [Documentation tab]?
    Is should be somewhere here? [Screenshot13](http://prntscr.com/oag0ug)
   or, here? [Screenshot14](http://prntscr.com/oag1ip)
 * I am sorry,, I am not able to find out Role slug,, because of my luck of knowledge,
   can you please give me instruction how to find it..?
 * Best regards
    Fujii
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/adding-role/#post-11700021)
 * Use this plugin to get the role slug you need: User Role Editor [https://es.wordpress.org/plugins/user-role-editor/](https://es.wordpress.org/plugins/user-role-editor/)
 *  Thread Starter [drt2de](https://wordpress.org/support/users/drt2de/)
 * (@drt2de)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/adding-role/#post-11701346)
 * Dear Javier,
 * Our site already has this plug in, User Role Editor,
    Role slugs we need is here?
 * [Screenshot15](http://prntscr.com/oao3ru)
 * or, this part?
    [Screenshot16](http://prntscr.com/oao4dz)
 * Thank you for your help..
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/adding-role/#post-11702585)
 * Yes, the ones in Screenshot16.
 * Those are the slugs 🙂
 *  Thread Starter [drt2de](https://wordpress.org/support/users/drt2de/)
 * (@drt2de)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/adding-role/#post-11704231)
 * Dear Javier,
    Thank you very much! It worked like a magigc!
 * Now I need to import new users with multiple roles.
    According to the documentation
   tab, I found the instruction like this, [Multiple roles can be imported creating
   a list of roles using commas to separate values.]
 * Current CSV (single Role)
    [Screenshot17](http://prntscr.com/ob2pr5) This works
   for a single role,
 * In order to give multiple roles, should I change the CSV like this?
    New CVS(
   Multiple Roles) [Screenshot18](http://prntscr.com/ob2qje)
 * Regards Fujii
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/adding-role/#post-11704242)
 * Fuji,
 * This is explained in documentation: use commas to set different roles.
 * Please read documentation before asking, we have much work and this is free for
   us, so we cannot use so much time as we would like to be able to continue with
   our jobs.
 *  Thread Starter [drt2de](https://wordpress.org/support/users/drt2de/)
 * (@drt2de)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/adding-role/#post-11704605)
 * Dear Javier,
    Yes, I read the documentation already, then asked you in my previous
   question, because I was not so clear about it. Also as you could seee in screenshot18,
   I separated with comma(,) in the spreadsheet. The thing I could not understand
   is, the Line 1 should be [roles] or [a list of roles] or somethingelse.
 * Best regards
    Fujii
 *  Thread Starter [drt2de](https://wordpress.org/support/users/drt2de/)
 * (@drt2de)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/adding-role/#post-11704662)
 * Dear Javier,
 * I tried with [roles] on the first line, and 2 different roles comma(,) between,
   
   like, [um_custom_role_3,um_custom_role_6]. [Screenshot19](http://prntscr.com/ob4j5i)
   [Screenshot20](http://prntscr.com/ob4k7i) The result was NONE [Screenshot21](http://prntscr.com/ob4kky)
 * Then changed colum from [role] to [a list of roles], then tried to import again.
   
   [Screenshot21](http://prntscr.com/ob4mz4) [Screenshot22](http://prntscr.com/ob4nib)
   The result was NONE [Screenshot23](http://prntscr.com/ob4nw3)
 * On the documentation, it is written [Multiple roles can be imported creating 
   a list of roles using commas to separate values.] and I could not find any other
   instruction.
 * I opened csv file with memopad,
    Username,Email,first_name,last_name,nickname,
   a list of roles,Password TestUser999,the.world.zimon@gmail.com,Import,Test,Nicktest,”
   um_custom_role_3,um_custom_role_6″,12345
 * Can you please let me know how I did wrongly?
    Best regards
    -  This reply was modified 6 years, 10 months ago by [drt2de](https://wordpress.org/support/users/drt2de/).
    -  This reply was modified 6 years, 10 months ago by [drt2de](https://wordpress.org/support/users/drt2de/).
 *  Plugin Author [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * (@carazo)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/adding-role/#post-11705823)
 * Please do not create CSV files manually. Use a program to do it, we always recommend
   Libre Office.
 * Also, why are you using “a list of roles” like column header. In the documentation
   it is said it has to be “role”.
 * Respect to cell values you have to use a list of role slugs separated by commas.
 *  Thread Starter [drt2de](https://wordpress.org/support/users/drt2de/)
 * (@drt2de)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/adding-role/#post-11706973)
 * Dear Javier,
 * I did not create csv file manually, I created csv file by google spread sheet
   and Libreoffice, and just opened it with memopad only to take a pic to show you
   here.
    I changed the column to a list of roles, because ‘role’ did not work..
   Anyway, I changed it back to ‘role and tried same thing again.
 * This is from Googlespreadsheet,
    [Screenshot24](http://prntscr.com/obipd1) and
   it somehow worked after keep trying several times.
 * Many thanks

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/adding-role/page/2/?output_format=md) 
[→](https://wordpress.org/support/topic/adding-role/page/2/?output_format=md)

The topic ‘Adding Role’ is closed to new replies.

 * ![](https://ps.w.org/import-users-from-csv-with-meta/assets/icon-256x256.png?
   rev=1174343)
 * [Import and export users and customers](https://wordpress.org/plugins/import-users-from-csv-with-meta/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/import-users-from-csv-with-meta/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/)
 * [Active Topics](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/import-users-from-csv-with-meta/reviews/)

 * 17 replies
 * 2 participants
 * Last reply from: [Javier Carazo](https://wordpress.org/support/users/carazo/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/adding-role/page/2/#post-11706992)
 * Status: resolved