If I understand your intent from looking at the github repo, Why not just use DISCOURSE_DEVELOPER_EMAIL and then when a user is created with that email address they are automatically an admin.
pfaffman
(Jay Pfaffman)
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Bulk creating users with rails etc | 10 | 1028 | October 14, 2023 | |
| SOLVED: Unable to Grant Admin or Grant Moderator to existing users | 2 | 3796 | January 17, 2015 | |
| Created a user from command line. Supposedly active, but isn't? | 1 | 126 | January 31, 2026 | |
| What is the Rails command to create an admin user in Discourse? | 9 | 2374 | April 10, 2020 | |
| Rake task for merging users | 61 | 14978 | August 12, 2022 |