Users losing group status?

Enable verbose sso logging in Discourse settings and check the SSO payload in /logs.