migrate_plus.migration.d7_users.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. id: d7_users
  2. label: User accounts
  3. migration_group: d7_materio
  4. audit: true
  5. migration_tags:
  6. - Drupal 7
  7. - Content
  8. - Materio
  9. source:
  10. plugin: d7_users
  11. batch_size: 1000
  12. destination:
  13. plugin: entity:user
  14. process:
  15. name: name
  16. pass: pass
  17. mail:
  18. -
  19. plugin: skip_on_value
  20. equals: true
  21. source: mail
  22. method: row
  23. value:
  24. - "dev@g-u-i.net"
  25. - "admin@g-u-i.net"
  26. -
  27. plugin: default_value
  28. source: mail
  29. default_value: null
  30. created: created
  31. access: access
  32. login: login
  33. status: status
  34. timezone: timezone
  35. langcode:
  36. plugin: user_langcode
  37. source: entity_language
  38. fallback_to_site_default: false
  39. preferred_langcode:
  40. plugin: user_langcode
  41. source: language
  42. fallback_to_site_default: true
  43. preferred_admin_langcode:
  44. plugin: user_langcode
  45. source: language
  46. fallback_to_site_default: true
  47. init: init
  48. roles:
  49. plugin: static_map
  50. source: roles
  51. default_value: 2
  52. map:
  53. 1: "anonymous"
  54. 2: "authenticated"
  55. 3: "admin"
  56. 4: "root"
  57. 5: "contact_company"
  58. 6: "adherent"
  59. 7: "free_user"
  60. 8: "premium"
  61. 9: "unverified"
  62. 10: "student"
  63. 11: "alpha_testeur"
  64. 12: "translator"
  65. 13: "admin_showroom"
  66. field_company:
  67. plugin: migration_lookup
  68. migration: d7_taxonomy_term_company
  69. source: field_company
  70. no_stub: true
  71. # field_company:
  72. # -
  73. # plugin: sub_process
  74. # source: field_company
  75. # process:
  76. # target_id:
  77. # plugin: migration_lookup
  78. # migration: d7_taxonomy_term_company
  79. # source: tid
  80. # no_stub: true
  81. # field_company:
  82. # plugin: default_value
  83. # default_value: 2673
  84. field_showroom:
  85. plugin: migration_lookup
  86. migration: d7_taxonomy_term_showroom
  87. no_stub: true
  88. source: field_showroom
  89. field_memo: field_memo
  90. # user_picture:
  91. # -
  92. # plugin: default_value
  93. # source: picture
  94. # default_value: null
  95. # -
  96. # plugin: migration_lookup
  97. # migration: d7_file
  98. # no_stub: true
  99. migration_dependencies:
  100. required:
  101. - d7_allpublicfiles
  102. - d7_taxonomy_term_showroom
  103. - d7_taxonomy_term_company
  104. # optional:
  105. # - d7_field_instance
  106. # - d7_file
  107. # - language
  108. # - default_language
  109. # - user_picture_field_instance
  110. # - user_picture_entity_display
  111. # - user_picture_entity_form_display