# API bug : final "." in username causes error

**URL:** <https://meta.discourse.org/t/api-bug-final-in-username-causes-error/230677>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [June 21, 2022, 9:27pm UTC](https://meta.discourse.org/t/api-bug-final-in-username-causes-error/230677 "2022-06-21T21:27:28Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Daniel\_McQuillen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daniel_mcquillen/32/160806_2.png) [@Daniel\_McQuillen](https://meta.discourse.org/u/Daniel_McQuillen)\
**Post date:** [June 22, 2022, 1:43am UTC](https://meta.discourse.org/t/api-bug-final-in-username-causes-error/230677/5 "2022-06-22T01:43:44Z")

</div>

Thanks for the follow up.

We do use [Discourse Connect](https://meta.discourse.org/t/13045?silent=true), but also use the API.

BTW, you mentioned `It might have been the non-admin route, though`

So that PUT request would be :

`/groups/{group_id}/members.json`

…with `'email': (user email)` as payload…and Discourse just knows my user has admin rights to be able to add that user to that group?

(…sorry, I’m fuzzy on why there are two routes for this same operation…)

---

_[View the full topic](https://meta.discourse.org/t/api-bug-final-in-username-causes-error/230677)._
