Problem/Motivation

I am trying to import users role but not able to import it. It Shows the empty field value after import. I am using the header user_roles for importing but is still not working.

Please suggest on this. What am I missing?

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

shimpy created an issue. See original summary.

shimpy’s picture

Issue summary: View changes
acontia’s picture

I have managed to import users with 1 role using a csv file with this structure (*note the "|target_id" on the roles header):

name,field_email,status,roles|target_id
test1@example.org,test1@example.org,1,passwordless_login
test2@example.org,test2@example.org,1,passwordless_login
test3@example.org,test3@example.org,1,passwordless_login

Looks like adding multiple roles is not supported by the module, but patch on #16 on this thread might help (I haven't tested it thought): https://www.drupal.org/project/csv_importer/issues/3000137#comment-13905193