# 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:** 6

<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: [June 22, 2022, 4:20am UTC](https://meta.discourse.org/t/api-bug-final-in-username-causes-error/230677/6 "2022-06-22T04:20:01Z")

</div>

> [@Daniel\_McQuillen](#):
>
> that PUT request would be :
> 
> `/groups/{group_id}/members.json`

I think so. I used [How to reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576)v to figure out the path. And then, I guess, looked at the source to see that the user ID and email address also work.

Yes, sso only updates groups on login, so api is your solution.

---

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