how to create user in admin discourse ?
plis help me, then answer step by step
thanks
In a Support topic titled āHow to manually add user in discourse?ā, users seek guidance on creating users in Discourse, especially under Single Sign-On (SSO) constraints. Jaka_Permana asks for step-by-step instructions, and pfaffman responds with two methods: inviting via email (or CSV) from the admin panel, or manually creating an account by registering as a user, then activating them via admin/users. Jaka_Permana confirms success. Later, consideRatio explains needing a service account under SSO, which complicates standard methods. pfaffman suggests using the terminal command rake admin:create inside the Discourse app container. consideRatio confirms success after running ./launcher enter app first, sharing the full command sequence. pfaffman apologizes for the incomplete initial reply. Finally, Martin_Cash asks about inviting users via the gear icon but realizes invites are disabled under SSO. The thread concludes with practical, CLI-based solutions for SSO environments and clarifies UI limitations.
how to create user in admin discourse ?
plis help me, then answer step by step
thanks
itās working , thanks for information ![]()
![]()
I want to create a user to act as a service account, but Iām using single sign on and would need to do quite a bit of work to actually get a service account from the underlying user provider there. In other words, I donāt know how to do the create an account step or invite step.
I understand I could create a new user by switching away from SSO for a while and then back, is that what I need to do or can I manage to create a user without doing this?
Perhaps there is a ruby related command I can run from the terminal of my virtual machine that has a /var/discourse folder with ./launcher etc in it.
Perhaps there is a SQL query I can run from somewhere?
Then maybe what you want is
cd /var/discourse
rake admin:create
In spite of the name, making the user an admin is optional.
Edit : oops left out enter app as noted below
Aha! Tank you for your help @pfaffman!
This is what I did for my docker-stacks installation that got āCommand ārakeā not foundā without adding some steps.
sudo -s
cd /var/discourse
./launcher enter app
rake admin:create
Tadaaaaaaaaa! Verified success!
Oops! Sorry. I was poking on my phone before having coffee. ![]()
Glad it was enough to get you there.
Has the method of inviting a single user from your User Preferences page (gear icon) changed? I see no reference to anything regarding an āinviteā on that page. Thanks.
Nevermind. I see where invites are disabled with SSO