Skip to content

Instantly share code, notes, and snippets.

@rakeshjames
Last active December 27, 2019 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rakeshjames/80080bda4902fab24c80672207731b01 to your computer and use it in GitHub Desktop.
Save rakeshjames/80080bda4902fab24c80672207731b01 to your computer and use it in GitHub Desktop.
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

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