This guide explains how to automatically add users to a Discourse group based on their email domain. It is intended for site administrators who manage Discourse groups.
Required user level: Administrator
Discourse allows you to automatically add users to a custom group based on the email domain that they register with.
To add users to a group based on their email domain:
Navigate to the group’s “Manage” → “Membership” page.
In the “Automatic” section, add the desired email domain(s).
Save to apply the changes. Existing users who match the email domain will also be automatically added to the group upon saving.
This setting is only available for custom groups that you create, but it can be used to automatically grant membership in a Discourse Trust Level group by combining it with the group’s automatic Trust Level setting:
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.
هناك اختلاف في هذا: لدى المستخدم عنوان بريد إلكتروني تنظيمي مما يعني أنه يُضاف إلى مجموعة تلك المؤسسة. ولكن بعد ذلك يتركون المؤسسة ويفقدون الوصول إلى عنوان البريد الإلكتروني، ولا يزال لديهم إمكانية الوصول إلى المجموعة.
إذا قاموا بإزالة عنوان البريد الإلكتروني، ألا ينبغي بعد ذلك إزالتهم أيضًا من المجموعة؟