The discussion revolves around a bug where users receive the TL2 welcome notification every time they log in via SSO. The issue occurs when “Sync User Data” is enabled, and the SSO provider sets a group that has a lower trust level than the user’s current trust level.
RJG reported the bug, which has been present for over a year. nat attempted to reproduce the issue but was unsuccessful. RGJ shared notes from the original instance, suggesting that the SSO provider passed an empty groups field, and the affected users were members of another group that forced them to TL2.
RJG also provided alternative steps to reproduce the issue, involving a second group. nat acknowledged the notes and will revisit the issue soon.
This bug is over one year old and in the meanwhile the client moved away from Discourse, so I cannot fully reproduce this anymore. However, I always take extensive notes so I even have record of the SSO payloads from back then. I am unable to inspect any other settings and/or try to repro on that exact instance though.
Back to my notes. What happened was a bit different from what you are doing. The SSO was passing an empty groups field (just groups=). But the users in question were members of another group, unknown to the SSO provider, which was forcing its members to TL2.
Additionally, the TL2 and TL3 welcome messages act differently as far as I recall, so you might have to use TL2 instead of TL3 if you attempt to reproduce this.
So to reproduce, I think you need to do the following: (note that I introduced a second group)
(Wordpress)
Set up wordpress user “Steaky” with email steaky@cat.com
add wpdc_custom_sso_params to set dogs group to all users who sign in with $params['groups'] = 'dogs';
I’ve paused exploring that bug since my last response, but I’ve read and I’m appreciative of your notes! Quite incredible that you’ve got such a nice log of it. It’s still on my plate and I’ll be getting back to it soon, so thank you for checking in.