# Remove case sensitivity for add to group API call

**URL:** https://meta.discourse.org/t/remove-case-sensitivity-for-add-to-group-api-call/99736
**Category:** Support
**Created:** [17 oktober 2018 om 16:57 UTC](https://meta.discourse.org/t/remove-case-sensitivity-for-add-to-group-api-call/99736 "2018-10-17T16:57:39Z")
**Posts on this page:** 5
**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: [17 oktober 2018 om 16:57 UTC](https://meta.discourse.org/t/remove-case-sensitivity-for-add-to-group-api-call/99736/1 "2018-10-17T16:57:39Z")

</div>

One can `PUT` to `https:// host/groups/GROUP_ID/members.json` with `usernames` set to a username. The username is case-sensitive, though.

I’m working with a client who is using Zoho webhooks to have people purchase something that adds them to a Discourse group. I’m having them manually enter their username (which I hate to do, but I don’t see a clean non-plugin way around it). It works like a charm unless they enter their username “MyCoolName” as “mycoolname”.

If this isn’t likely to get changed in core in the short term, can I fix this easily in a plugin? I don’t see that `put` in `config/route.rb`. What would I need to override?

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [17 oktober 2018 om 18:00 UTC](https://meta.discourse.org/t/remove-case-sensitivity-for-add-to-group-api-call/99736/2 "2018-10-17T18:00:11Z")

</div>

I’ll work on this. I was just working near here.

---

<div class="post-metadata">

### Author: ![ked](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ked/32/64837_2.png) [@ked](https://meta.discourse.org/u/ked)
#### Post date: [18 oktober 2018 om 17:00 UTC](https://meta.discourse.org/t/remove-case-sensitivity-for-add-to-group-api-call/99736/4 "2018-10-18T17:00:52Z")

</div>

Thanks Blake, I can certainly benefit from this, and I believe others also.

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [18 oktober 2018 om 19:43 UTC](https://meta.discourse.org/t/remove-case-sensitivity-for-add-to-group-api-call/99736/5 "2018-10-18T19:43:25Z")

</div>

Done.

[https://github.com/discourse/discourse/commit/93485facaf5672f7472b2d0dd605d36617ad93be](https://github.com/discourse/discourse/commit/93485facaf5672f7472b2d0dd605d36617ad93be)

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [17 november 2018 om 19:43 UTC](https://meta.discourse.org/t/remove-case-sensitivity-for-add-to-group-api-call/99736/6 "2018-11-17T19:43:29Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
