How to migrate multi role to an user using migrate csv plugin I have migrated bunch of users using the Migrate Source CSV and am succeeded in it, But I want multi-roles to be defined for single user.

Here is my config file,



Here is my following cases that I have tried out in a CSV file and it failed,



Is there is anything am missing out?
First put your all roles inside double quote separating by comma (,) and be sure that your all roles on csv file must be role's machine name.



then edit your config file something like this....

process: 
  name: name
  mail: email
  pass: password
  roles:
    plugin: explode
    delimiter: ','
    source: roles
  status: status
destination:
  plugin: 'entity:user'
  md5_passwords: true


you have to use plugin: explode provided by drupal to import multiple roles separated by comma (,).

And if you are importing password also then use md5_passwords: true