Multiple roles not being imported correctly

I’ve been using the plugin for a while now. No issue. However now when I import the MS DOS txt file, with this header (@user_login user_email first_name last_name roles) which I’ve always used, with multiple roles separated by comma like this (Amy Aderman alderman@gmail.com Amy Aderman “2re, 2nu, 3pr”), it imports all ok except the roles. It randomly picks one or possibly 2 of the roles but not all the roles. Please help.

3 Responses to Multiple roles not being imported correctly

  1. George February 24, 2021 at 4:11 pm #

    Hi Doron,

    Indeed your second import file makes more sense. The only points I should mention are to omit the quotes from the roles lists and also make sure that these roles exist on your installation, otherwise new users won’t be assigned to each role and will default to the existing roles( subscriber, editor, … etc ).

    Kind regards,
    George

  2. George February 24, 2021 at 1:42 pm #

    Hi Doron, thanks for sharing your import file with me.

    As it seems the column structure and names are not correct. For example the column names should be lowercase and when you need to override some of the columns, then the first column name should begin with a “@”. Also, the first column name First Name and Last Name is not valid and there are no columns indicated for groups or roles. Furthermore, the double quotes for data on the last column named Sessions should be omitted, for entries with multiple terms you should only use a comma separated list.

    Please have a look at the plugin documentation regarding the File Format and Column Order and then adjust your import file accordingly.

    Kind regards,
    George

  3. George February 23, 2021 at 5:46 pm #

    Hi Doron,

    Thanks for using our tools for content restriction on your site, we appreciate it.

    Can you please provide us with a sample of the import file you are using?
    I think it’s better to try and import it in one of my test installations. You may send the sample file to george at itthinx dot com.

    Kind regards,
    George

Only authorized members can comment on this topic.

Log in

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share