Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rakeshjames
Created December 12, 2016 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rakeshjames/5c2db5804fbeb3b38ac19e93b1a7accc to your computer and use it in GitHub Desktop.
Save rakeshjames/5c2db5804fbeb3b38ac19e93b1a7accc to your computer and use it in GitHub Desktop.
id: demo_user_migration
migration_tags: null
migration_group: null
label: 'User migration from CSV'
source:
plugin: csv
path: /Library/WebServer/Documents/d8/sites/default/files/demousers_migrate.csv
header_row_count: 1
keys:
- ID
process:
name: name
mail: email
roles: roles
field_last_name: firstname
field_first_name: lastname
status: Status
destination:
plugin: 'entity:user'
migration_dependencies:
required: { }
optional: { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment