# SSO add\_groups not working

**URL:** https://meta.discourse.org/t/sso-add-groups-not-working/67908
**Category:** Bug
**Created:** [August 11, 2017, 9:42pm UTC](https://meta.discourse.org/t/sso-add-groups-not-working/67908 "2017-08-11T21:42:27Z")
**Posts on this page:** 4
**Page:** 1

<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: [August 11, 2017, 9:42pm UTC](https://meta.discourse.org/t/sso-add-groups-not-working/67908/1 "2017-08-11T21:42:27Z")

</div>

Continuing the discussion from [SSO add\_groups should be case-insensitive](https://meta.discourse.org/t/sso-add-groups-should-be-case-insensitive/67183/3):

Hey, @neil. My client upgraded Discourse and the SSO group loads stopped working. SSO debug logs show that the group names (that contain caps) are getting passed. I see that the group names are getting downcased when they come from SSO, but is that `Group.where` clause case insensitive?

[https://github.com/discourse/discourse/commit/3de45ce0cd3671e9bc6acafc6c02eb42b0ca1e97](https://github.com/discourse/discourse/commit/3de45ce0cd3671e9bc6acafc6c02eb42b0ca1e97)

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [August 11, 2017, 10:10pm UTC](https://meta.discourse.org/t/sso-add-groups-not-working/67908/2 "2017-08-11T22:10:56Z")

</div>

Oops. I pushed a fix. I think all case sensitivity is handled there now.

---

<div class="post-metadata">

### Author: ![sunnyt7](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sunnyt7/32/71920_2.png) [@sunnyt7](https://meta.discourse.org/u/sunnyt7)
#### Post date: [August 11, 2017, 11:01pm UTC](https://meta.discourse.org/t/sso-add-groups-not-working/67908/3 "2017-08-11T23:01:07Z")

</div>

Looks to be working now. Thanks for the quick fix!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [August 12, 2017, 1:28am UTC](https://meta.discourse.org/t/sso-add-groups-not-working/67908/4 "2017-08-12T01:28:12Z")

</div>


