At the moment it is not possible to create a new User from Administration > Users.
Please add a Button to create a new User from the Admin Pannel. This new User creation bypasses checks like the “reserved usernames” setting.
What? You don’t “create” users, they sign up.
for example I will create a AutoMod User for automated tasks but over the sign up methode it is not possible because the word “mod” is on the reserved usernames list.
And over the normal sign up methode i must create also a Mail Adress for this Bot Account.
You can change a username after they are signed up.
I suggest using plus-addressing (username+bot@example.org) to manage such accounts. You may of course turn off email for the user.
This is a good workaround but not a clean solution. Is it possible to verify this Mail Adress from the Administration panel.
I don’t recall, I just create a new account as usual and follow the instructions. I think it is a link in an email.
You can send a test email to the address you create by going to Admin/Emails in your Dashboard, fill in the address at the lower left, then click on “Send Test Email”.
If the test wasn’t received, go to Emails again and look in the Bounced and the Rejected tabs to see if any message has bounced or been rejected (bad address, undeliverable, etc.).
Ok but i don’t can set the mail adress to “no_email” like the system user.
使用 rake admin:create 创建一个新用户,而无需通过电子邮件确认。管理员应该有更好的方法来创建其他帐户,但这似乎是目前最简单的方法。
管理员仪表板上的用户界面?我觉得我好像见过这个功能,但不确定,@JammyDodger
这对于小型封闭社区的管理将极其有用。特别是那些将 Discourse 用于业务通信/知识库的用户。
目前的方式对于此类用例并非最佳。
这里似乎有点混乱。![]()
按照 OP 的建议创建一个管理员,就像正常注册用户一样简单,从他们的用户页面手动激活他们的电子邮件(如果需要?),同时授予管理员权限。如果你想使用一个保留的用户名,也可以暂时禁用 reserved usernames。![]()
我一直都在创建测试用户,这非常快捷方便。
(而且 @maiki 建议的加号地址邮件技巧也很有用,或者如果你有一个支持该功能的域收件箱,你也可以设置别名)
…那么方法是…?我想创建一个没有电子邮件且具有某些访问权限的 test_user,以便我可以使用它来生成 API 密钥。
我的倾向于使用别名电子邮件,这样我就可以将它们用作真实用户,但你也可以不这样做。
没什么特别的:
- 在单独的浏览器/隐私窗口中转到
/signup - 将电子邮件输入为类似
NAME@email.invalid[^1](+ 用户名和密码)的内容 - 作为管理员,从他们的
admin/user页面激活新用户
- 根据需要提高信任级别
[^1]:这将注册为一个可用的电子邮件,但 Discourse 不会尝试向 .invalid 的电子邮件发送任何邮件。
我尝试使用 test-user@email.invalid 作为电子邮件,并输入了一个虚构的密码。
但是,我收到了“抱歉,授权您的帐户时出错。请重试。”的消息——我们实例启用了 LDAP 插件 (discourse-ldap-auth)。
我是 Discourse 管理员,可以管理用户+设置权限等。我只希望管理屏幕中有“创建用户”操作,这样我们就可以直接处理这个问题。
抱歉,我对该插件没有任何经验。您能否像平常一样注册一个新用户,然后从他们的偏好设置中替换电子邮件?
您能否像平常一样注册一个新用户,然后从他们的偏好设置中更改电子邮件?
不,必须通过 LDAP 成功进行身份验证。(我的意思是,是的,我可以要求一个尚未在 Discourse 上拥有帐户的用户注册并牺牲他们的帐户,以便我用于测试目的……但这不现实。)
我尝试过使用“+”电子邮件方法——例如,如果我的用户名是 splendid@foobar.com,并且我在 Discourse 上有一个帐户,那么我可以使用 splendid+test@foobar.com 创建另一个帐户——但这是不允许的。LDAP 身份验证只匹配确切的电子邮件帐户。
我真的很想要一个测试帐户,类似于 discobot 或 system,但权限较低。
我不记得确切的细节了,但我想有一种方法可以禁用 LDAP 并本地登录,或者同时支持这两种登录方式。有点像启用这些:
并禁用一两个 LDAP 登录设置。我不建议你在生产环境中随意更改,但如果你有预演服务器,可以尝试更改这些设置是否能解决首次登录问题。
否则,是否有已离开平台的用户拥有 LDAP 账户?在我们的服务器上,我最终匿名化了一个已离开的用户。这基本上是将账户与电子邮件和登录解耦,但保留账户,以便我可以授予它各种权限并冒充它(在为其指定一个合适的名称后)。同样,我还为其分配了一些 API 密钥,并使用它来执行自动化任务。
嗯。好的,我试试……
