Drupal 8 User migration from a csv File!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi everyone welcome to Drupal welcome to CSV migration into to Pilate so we going to migrate a CSV file into true pirate system we having a details of users in a CSV file which has name email password first name and last name and rows you can see there is a multiple roles are assigned and you can see the password also so before we starting and we need to make sure that we enable all the migration modules in our system migrate migrate plus migrate saw CSV and migrate tools those are the contraband core modules and migrate CSV is the custom module we are writing it so you can see that my grass plus my grass migrate sauce ESPN migrate tools three country modules and migrate CSV is the custom module we are writing it in our custom module we are keeping our CSV file which under migrations folder we need to keep our yml 4 PI ml file for the migration this is our use of migration why in a presentation more so you can see the ID of the migration and which migration groobie are using it and what's the source plugin you're using CSU plugin you're using where is the CSV is present in your system and what is header row and keys ID so we keeping one constant because of what all that uses we migrating we want to make the mass in Irbil so we use statuses one if you have statuses coming in your way my file you can obviously you can go and map that was another that were not so so in the process step you are mapping all the CSV columns to your user entity fields in Drupal 8 you can see the roles in the roles we are using explorer process plugin and for because of there is a multiple roles are coming in there is a first name and last name and password is coming as a plane test you need to make that as a encrypted one in Drupal 8 so we are using md5 encryption system and destination is user and that's pretty much in your AML file so this is your CSE we need to make sure you do have first name and last name created in your user profile and see the manage fields you see we have first name and last name created here and we do have one extra role is coming that is editor so we need to make sure that is also get created in rows we also create as that one so we have everything in place now we need to go to our Drupal doc root you can in the rush and find out what all or the migration commands provided by the trash this is provided by migration tools module so if you migration starters if you check migration status you can see your ID of my gracious we use society that's creating the user this is ID so trash migrate migrate and I am and excuses see for users are created for users are created so it's created if you want to roll back you can do it's rolled back for items so it's all back so you gave in but again imported again so let's let's take one user and login us in as that user yeah there we go so we migrated the users this is how you use CSV migration into pallet thank you all for watching if you have any questions a shout on slide true pulse life or Twitter thank you for watching
Info
Channel: R J
Views: 2,290
Rating: 4.7777777 out of 5
Keywords: Drupal, Drupal8, migration
Id: kIra8QgCrL0
Channel Id: undefined
Length: 5min 55sec (355 seconds)
Published: Fri May 18 2018
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.