# Groups not being added to new users

**URL:** <https://meta.discourse.org/t/groups-not-being-added-to-new-users/67111>\
**Category:** SSO\
**Created:** [30. Juli 2017 um 16:00 UTC](https://meta.discourse.org/t/groups-not-being-added-to-new-users/67111 "2017-07-30T16:00:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [30. Juli 2017 um 17:05 UTC](https://meta.discourse.org/t/groups-not-being-added-to-new-users/67111/2 "2017-07-30T17:05:47Z")

</div>

> [@SwisherSweet](#):
>
> Is it possible to assign admin, moderator, and staff groups this way?

No. You can’t pass automatic groups in the SSO payload (see `AND NOT automatic` in the code below).

[https://github.com/discourse/discourse/blob/master/app/models/discourse\_single\_sign\_on.rb#L113](https://github.com/discourse/discourse/blob/master/app/models/discourse_single_sign_on.rb#L113)

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.

---

_[View the full topic](https://meta.discourse.org/t/groups-not-being-added-to-new-users/67111)._
