In a Support discussion titled “Preemptively add email id to group,” theopen-institute asked if it’s possible to automatically add users to a group upon account creation based on their email address — particularly useful for college classes using private groups. Stephen suggested using SSO (Single Sign-On) with group data in the payload as the easiest solution. omarfilip pointed out Discourse’s built-in feature that automatically adds users from a specific email domain to a group, accessible via Admin → Users → Groups → Manage → Membership. pfaffman offered an alternative: letting users self-join or assigning a group owner to approve members. In response, theopen-institute concluded that SSO is the best path forward for their use case, noting that while the domain-matching feature is useful, it doesn’t fit their specific needs. The discussion highlights Discourse’s flexibility for institutional use, with SSO being the most scalable solution for automated group assignment based on user identity.
Is there a way to preemptively add an email address to a group, such that new users will automatically be members that group when/if they create an account? (Or, perhaps, is there a better/more discourse-y way to achieve the same goal?)
I’m using discourse in the context of a college, and some of our teachers want to use private groups for specific classes. Right now, we create the group, ask users to create accounts (with known email addresses), then add users to the groups. It’s a bit tedious, however, since we end up having to go back several times to pick up stragglers, etc., and we’re wondering if there’s a better way. Thanks in advance for all ideas!
Thanks everyone. It looks like setting up a SSO is the way to go. The domain match is interesting and good to learn about, but doesn’t work in my situation.