# Import Users via CSV

**URL:** https://meta.discourse.org/t/import-users-via-csv/391695
**Category:** Support
**Created:** [December 18, 2025, 7:47pm UTC](https://meta.discourse.org/t/import-users-via-csv/391695 "2025-12-18T19:47:55Z")
**Posts on this page:** 1
**Showing post:** 11

<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: [December 19, 2025, 3:39pm UTC](https://meta.discourse.org/t/import-users-via-csv/391695/11 "2025-12-19T15:39:56Z")

</div>

Here’s where the filename gets set:

```plaintext
  CSV_FILE_PATH = ENV["CSV_USER_FILE"] || "/var/www/discourse/tmp/users.csv"

```

So either put the file there, or set ENV variable `CSV_USER_FILE` to wherever you put the file.

Oh, but the first thing the script does is read in ALL of the CSVs it expects (all of those @… = `load_csv` lines), so you’ll need to comment out or delete the ones you don’t want. And the `import_users` looks at custom field data, so you need to change that too.

If that’s not enough of a hint, and you’ve got a budget, email (in my profile) me a number and I’ll see what I can find a way to help you for that number.

---

_[View the full topic](https://meta.discourse.org/t/import-users-via-csv/391695)._
