migrate_plus.migration.d7_users.yml 2.4 KB

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