The discussion revolves around issues with assigning groups to new users via SSO in Discourse. SwisherSweet explains that while SSO authentication works, group assignments via add_groups in the payload fail. pfaffman clarifies that automatic groups (like admin, moderator, staff) cannot be assigned through SSO; only custom non-automatic groups can. SwisherSweet confirms understanding, referencing the list of automatic groups. sam reinforces that only custom groups are supported and suggests using dedicated flags for admin/moderator roles via API or manual assignment.
For us, Staff is similar to moderator and Admin is the highest privileged user. My goal is to remove any obsolete groups while adding appropriate groups.
When a user logs in, all the other attributes are set, but groups are not.
Am I removing and assigning groups correctly?
Is it possible to assign admin, moderator, and staff groups this way?
I think you’ll either need to make your own custom group, which I don’t think will do what you want, assign admin/moderator rights in Discourse by hand (easiest if you don’t have lots and they don’t change often), or use API calls to manage those.