# SSO users aren't automatically added to email domain-based groups

**URL:** <https://meta.discourse.org/t/sso-users-arent-automatically-added-to-email-domain-based-groups/66980>\
**Category:** Bug\
**Created:** [July 28, 2017, 2:33am UTC](https://meta.discourse.org/t/sso-users-arent-automatically-added-to-email-domain-based-groups/66980 "2017-07-28T02:33:29Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![barryvan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryvan/32/82635_2.png) [@barryvan](https://meta.discourse.org/u/barryvan)\
**Post date:** [July 28, 2017, 2:33am UTC](https://meta.discourse.org/t/sso-users-arent-automatically-added-to-email-domain-based-groups/66980/1 "2017-07-28T02:33:29Z")

</div>

When a user is created via SSO, it appears that their membership in groups based on their email domain isn’t firing.

That is, I have a group set up like so:

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/1/f1e0119eeef86133f5475b4efc3a8b722c3ea6b6.png)

…but users coming in via SSO don’t seem to be added to this group automatically:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/c/bce4e38c9c9e2291be95dff6914f138b1fe58c35.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/2/b29dd8f5fb38095ab56fde241c9a9e7e3580b2f6.png)

It looks as though there was a discussion around this last year in relation to the “moderator” SSO flag and membership:

> [@Users are not added to the moderators groups when registering with SSO](https://meta.discourse.org/t/users-are-not-added-to-the-moderators-groups-when-registering-with-sso/40165):
>
> Steps to reproduce: Have SSO set up. Let a new user sign in, and specify that he is a moderator in the payload. Expected results: The users has exactly the same permissions as if he signed up and was instantly manually awarded moderator permissions. Actual results: The user is given the moderator flag, but is not added to the staff or moderator groups. This means that he cannot access categories requiring these permissions. Here’s a screenshot of the user settings: It looks lik…

…but this is about everyday, run-of-the-mill users who I want to be in a group so they get flair and specific category access.

---

_[View the full topic](https://meta.discourse.org/t/sso-users-arent-automatically-added-to-email-domain-based-groups/66980)._
