Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save punyaruchal/a724e70707b5f5e54b8f81d47e611f97 to your computer and use it in GitHub Desktop.
Save punyaruchal/a724e70707b5f5e54b8f81d47e611f97 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: { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment