Users are experiencing issues with SSO users not being automatically added to email domain-based groups. barryvan noticed this issue and shared screenshots of the group setup and the issue. sebastien also encountered the same problem and discovered four different use cases with varying results.
After further investigation, sebastien found that enabling SSO without account validation seems to turn off the “auto-assign user to group” feature.
A workaround was provided by mbb70, suggesting to set the add_groups field in the SSO payload based on the user’s email. This solution worked for sebastien, but required custom code in their SSO engine.
However, zogstrip mentioned that this issue has already been fixed in a commit made a while ago.
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.
When you are generating your SSO payload, you can set the add_groups field based on your user’s email, where add_groups is a comma delimited string of groups. I haven’t seen any documentation on this but the code is pretty clear:
That was our workaround to this issue and it has been working so far.