Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
id: User_with_multiple_roles
class: null
field_plugin_method: null
cck_plugin_method: null
migration_tags: null
migration_group: null
label: 'User migration from CSV test'
source:
plugin: csv
path: /Users/rakeshjames/Sites/migrationdemo/csv/demouser_migrate_multipleRoles.csv
header_row_count: 1
keys:
- ID
process:
name: name
mail: email
roles:
plugin: explode
delimiter: ','
source: roles
field_first_name: firstname
field_last_name: lastname
status: Status
pass: Password
destination:
plugin: 'entity:user'
md5_passwords: true
migration_dependencies:
required: { }
optional: { }
@seenidurai
Copy link

seenidurai commented Dec 27, 2019

When I have tried to import users with multiple roles. I have issues with check multiple roles in user edit. But it shows roles list in user list view. Kindly please reply me if anything i need to correct from myside for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment