根据电子邮件域名将用户添加到组中

:bookmark: 本指南介绍如何根据电子邮件域名自动将用户添加到 Discourse 群组。本指南面向管理 Discourse 群组的站点管理员。

:person_raising_hand: 所需用户等级:管理员

Discourse 允许您根据电子邮件域名自动将用户添加到自定义群组。使用匹配的电子邮件域名注册的用户将被自动添加,保存设置后,现有使用匹配电子邮件的用户也将被添加。

要根据电子邮件域名将用户添加到群组:

  1. 导航到群组的“管理” → “成员资格”页面。

  2. 在“自动”部分,添加所需的电子邮件域名。

  3. 保存以应用更改。如果现有用户与新的电子邮件域名匹配,将出现一个确认对话框,显示将有多少用户被添加到群组中。现有用户必须具有已确认的电子邮件地址才能被添加。

:information_source: 此设置仅适用于您创建的自定义群组,但通过将其与群组的自动信任等级设置相结合,可用于自动授予 Discourse 信任等级群组的成员资格。

7 个赞

Hi Simon i don’t seeme to be able to see this setting when setting up the automatic rules. Any idea why?

Thanks for pointing that out. It looks like that setting has been removed. Existing users are now automatically added to the group. This is probably the desired behaviour for most cases. One thing I noticed is that when saving the changes after a domain has been added to the setting, a modal window lets you know about the changes, but there is no obvious way to back out of the change:

I’ll update this topic’s first post to describe the new behaviour. The copy that we use for the “Automatic” setting also needs to be updated to make it clear that it affects all users on the site.

1 个赞

一种变体:用户有一个组织邮箱地址,这意味着他们被添加到该组织的群组中。但之后他们离开了该组织并失去了对该邮箱地址的访问权限,他们仍然可以访问该群组。
如果他们删除了邮箱地址,难道不应该也将他们从群组中移除吗?

1 个赞