# Automatic custom group assignment not working automatically

**URL:** <https://meta.discourse.org/t/automatic-custom-group-assignment-not-working-automatically/73645>\
**Category:** Product Support\
**Created:** [November 8, 2017, 12:00am UTC](https://meta.discourse.org/t/automatic-custom-group-assignment-not-working-automatically/73645 "2017-11-08T00:00:10Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![nilobject](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nilobject/32/120556_2.png) [@nilobject](https://meta.discourse.org/u/nilobject)\
**Post date:** [November 8, 2017, 12:00am UTC](https://meta.discourse.org/t/automatic-custom-group-assignment-not-working-automatically/73645/1 "2017-11-08T00:00:10Z")

</div>

I’m using the omnibus version of the distribution and am on Discourse 1.8.10. I created a custom group for my employees, and I entered in the “Users who register with an email domain that exactly matches one in this list will be automatically added to this group” my domain, e.g., “[google.com](http://google.com)”. I clicked the box “Apply the same email domain rule to add existing registered users”.

Once I click save, every existing registered user with an email domain that matches is added. That’s great.

I then when into a new browser and tested with a test email account I set up, and upon registering, the new user is NOT part of the custom group. In the admin, if I open up the group I don’t see the user there.

If I click “Save” without changing anything else, the new user is then added to the group.

Users are currently set up to log in with Google OAuth, but I also temporarily allowed local logins and couldn’t get this automatic group assignment to work with either mechanism.

I’ve tried searching for a solution, but I can see people using the feature but no one saying it’s not working for them. Is there some configuration option that would cause the flow I’m seeing above? Or is this a bug and should be moved to that category?

**Update:** Logging out and re-logging in assigns the group automatically. So it’s just initial login that is the issue. This makes me think it’s because of the whitelisted email domain not requiring email address verification. (It’s not, I just tested that theory)

---

_[View the full topic](https://meta.discourse.org/t/automatic-custom-group-assignment-not-working-automatically/73645)._
