Aggiunta automatica di utenti al gruppo in base al dominio email

Nel nostro forum abbiamo creato un gruppo personalizzato per gli utenti con un determinato dominio di posta elettronica. La mia comprensione era che i nuovi utenti che si uniscono al sito con questo dominio venissero aggiunti automaticamente al gruppo. Tuttavia, sembra che non funzioni in modo automatico. Al momento devo andare su Gruppo > Membri e cliccare su Salva modifiche per vedere che l’ultima ondata di nuovi utenti venga aggiunta a questo gruppo. Altrimenti, sembra che non vengano aggiunti.

È questo il comportamento previsto? Vorrei anche aggiungere che stiamo utilizzando l’SSO, quindi non sono sicuro se ciò possa influenzare questa funzionalità.

@sam this is the same as the other recent report, where these rules aren’t consistent.

Looks like an SSO bug to me

Can you confirm you are using Official Single-Sign-On for Discourse (sso)

Yes, we are using the official SSO for Discourse.

I think this is the bug.

When you were updating emails via SSO cause you have sso_overrides_email enabled the auto group membership was not taking.

It would take for initial user creations.

Note, there is the whole “retroactive” concept that is massively confusing, we should probably just remove that. I recommend you make sure Apply the same email domain rule to add existing registered users is always set, we are going to be removing it.

I would suggest that you manage those groups with sso and push them when they log in.