# 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:** 3

<div class="post-metadata">

**Author:** ![sebastien](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@sebastien](https://meta.discourse.org/u/sebastien)\
**Post date:** [October 17, 2017, 2:52am UTC](https://meta.discourse.org/t/sso-users-arent-automatically-added-to-email-domain-based-groups/66980/3 "2017-10-17T02:52:22Z")

</div>

I have the same issue. It seems that unregistered users who used SSO to login cannot be added automatically to groups!

UPDATE: now I can identity four use cases:

1/ New users without account validation: users are **not** automatically added to groups  
2/ New users with account validation: users will be added automatically to groups

3/ Existing users (provisioned by the SSO engine): users are **not** automatically added to groups  
3/ Existing users (fully registered): users are added automatically to groups

When enabling SSO (with no account validation) it seems that the “auto-assign user to group” feature is turned off.

Is this the expected behavior? If not is there a workaround.

Regards,  
Seb

---

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