• Hello !

    I am trying to import users with several roles separated with comas like I see in documentation (or in the CSV I have while exporting).
    There is no error, but in the users list the roles are not assigned.

    I am using Members to create roles.

    Please help.

    Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Javier Carazo

    (@carazo)

    @vfavrat,

    You have to use the role slugs to set the roles in the list.

    Can you check if are you writing the role slugs correctly?

    Thread Starter Virginie FAVRAT

    (@vfavrat)

    Hello !
    I am sure that I write the slugs roles the right way because the users are created with correct roles but just if I put just one.
    I try to add a second role by updating the users with their second roles and choosing the option “Yes, add new roles and not override existing ones”. But it does not work either. The first role is overwritten by the second one.

    An example (2 first rows of the csv) :
    “username” “email” “last_name” “first_name” “role” “nickname” “display_name” “show_admin_bar_front”
    “truc.machin” “[email protected]” “MACHIN” “Truc” “parents_ps_ms,pour_tous” “Truc” “Truc MACHIN” “false”

    Thread Starter Virginie FAVRAT

    (@vfavrat)

    To help, it is the last role that it is keeping. The roles are all red but just the last one is kept.
    When the role does not exist (or is miswritten) there is an error message.

    Thread Starter Virginie FAVRAT

    (@vfavrat)

    I have just try in another blog and it is OK. The issue is only with the multisite one. Is it possible that the issue is due to the multisite ?
    Or is it possible that another plugin can cause this issue ?

    Plugin Author Javier Carazo

    (@carazo)

    I use something like this: $user_object->add_role( $role );

    https://developer.www.ads-software.com/reference/classes/wp_user/add_role/

    This function does not mention something about multisite, so it should not be a problem there…

    Surely the problem is with another plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Multiple roles : can not import’ is closed to new replies.