# Import custom fields of user with import\_scripts Ruby

**URL:** <https://meta.discourse.org/t/import-custom-fields-of-user-with-import-scripts-ruby/275683>\
**Category:** Migration\
**Tags:** drupal\
**Created:** [August 18, 2023, 10:17am UTC](https://meta.discourse.org/t/import-custom-fields-of-user-with-import-scripts-ruby/275683 "2023-08-18T10:17:32Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [August 18, 2023, 2:09pm UTC](https://meta.discourse.org/t/import-custom-fields-of-user-with-import-scripts-ruby/275683/9 "2023-08-18T14:09:18Z")

</div>

Looks like [discourse/script/import\_scripts/csv\_importer.rb at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/main/script/import_scripts/csv_importer.rb#L69-L78) should work, but you have to define the ENV seen in [discourse/script/import\_scripts/csv\_importer.rb at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/main/script/import_scripts/csv_importer.rb#L11).

---

_[View the full topic](https://meta.discourse.org/t/import-custom-fields-of-user-with-import-scripts-ruby/275683)._
