# Users are not added to the moderators groups when registering with SSO

**URL:** <https://meta.discourse.org/t/users-are-not-added-to-the-moderators-groups-when-registering-with-sso/40165>\
**Category:** Bug\
**Tags:** sso, discourseconnect\
**Created:** [25.Февраль.2016 15:30:07 UTC](https://meta.discourse.org/t/users-are-not-added-to-the-moderators-groups-when-registering-with-sso/40165 "2016-02-25T15:30:07Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)\
**Post date:** [25.Февраль.2016 15:30:07 UTC](https://meta.discourse.org/t/users-are-not-added-to-the-moderators-groups-when-registering-with-sso/40165/1 "2016-02-25T15:30:07Z")

</div>

**Steps to reproduce:**

1. Have SSO set up.
2. Let a new user sign in, and specify that he is a moderator in the payload.

**Expected results:**

The users has exactly the same permissions as if he signed up and was instantly manually awarded moderator permissions.

**Actual results:**

The user is given the moderator flag, but is not added to the `staff` or `moderator` groups. This means that he cannot access categories requiring these permissions.

Here’s a screenshot of the user settings:

 ![](https://global.discourse-cdn.com/meta/original/3X/f/2/f2e0f8685bf553c64d30e0c84c2881c8cdf5a24f.png)

It looks like hitting Refresh on `/admin/groups/automatic` fixes this for already created users.

---

_[View the full topic](https://meta.discourse.org/t/users-are-not-added-to-the-moderators-groups-when-registering-with-sso/40165)._
