# Experience importing users and topics from CSV files?

**URL:** <https://meta.discourse.org/t/experience-importing-users-and-topics-from-csv-files/291085>\
**Category:** Migration\
**Created:** [January 9, 2024, 11:17pm UTC](https://meta.discourse.org/t/experience-importing-users-and-topics-from-csv-files/291085 "2024-01-09T23:17:48Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ToddZ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/toddz/32/328350_2.png) [@ToddZ](https://meta.discourse.org/u/ToddZ)\
**Post date:** [January 9, 2024, 11:17pm UTC](https://meta.discourse.org/t/experience-importing-users-and-topics-from-csv-files/291085/1 "2024-01-09T23:17:49Z")

</div>

I have a few (82) users and (133) posts I’d like to bring over from an abortive attempt on a former platform. Tiny, but just enough to make copy & paste onerous. I’m tentatively hoping to try the CSV importer script. It would be my first time working with a Ruby script.

I’ve prepared CSV files per [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)

But unless I’m missing something, the CSV import script doesn’t seem complete. I see no provision in the CSV requirements or the script to associate posts with parent topics. Not sure what this would end up looking like.

I’d also like the original post dates preserved, but there’s no field here for that.

The [Zendesk importer](https://github.com/discourse/discourse/blob/main/script/import_scripts/zendesk.rb) does deal with “topic\_id” and “created\_at” fields. I don’t know if the Zendesk importer would be a better bet, or if it would bomb out on fields my CSV data lacks. (I’m not coming from Zendesk.)

Wondering if anyone has experience with the CSV importer as-is, or perhaps has modified it to add functionality.

---

_[View the full topic](https://meta.discourse.org/t/experience-importing-users-and-topics-from-csv-files/291085)._
