# Prevent Google OAuth2 users getting username "user1", "user2"...?

**URL:** https://meta.discourse.org/t/prevent-google-oauth2-users-getting-username-user1-user2/379798
**Category:** Support
**Created:** [August 22, 2025, 7:59am UTC](https://meta.discourse.org/t/prevent-google-oauth2-users-getting-username-user1-user2/379798 "2025-08-22T07:59:01Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [August 22, 2025, 8:36am UTC](https://meta.discourse.org/t/prevent-google-oauth2-users-getting-username-user1-user2/379798/2 "2025-08-22T08:36:26Z")

</div>

> [@ToddZ](#):
>
> I don’t know why this happens for a few Google OAuth2 users but not for most. I’d welcome any insight.

Bit of guesswork on my part, but could it be that their usernames contained spaces or special characters? That’s not allowed in Discourse usernames.

But @pmusaraj will know a lot better, I’m curious too now 🙂

---

_[View the full topic](https://meta.discourse.org/t/prevent-google-oauth2-users-getting-username-user1-user2/379798)._
