# Kunnen gebruikersnamen cijfers zijn in plaats van letters?

**URL:** https://meta.discourse.org/t/can-usernames-be-numbers-instead-of-letters/213648
**Category:** Support
**Created:** [2 januari 2022 om 18:40 UTC](https://meta.discourse.org/t/can-usernames-be-numbers-instead-of-letters/213648 "2022-01-02T18:40:50Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Jay91](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jay91/32/135181_2.png) [@Jay91](https://meta.discourse.org/u/Jay91)
#### Post date: [2 januari 2022 om 18:40 UTC](https://meta.discourse.org/t/can-usernames-be-numbers-instead-of-letters/213648/1 "2022-01-02T18:40:50Z")

</div>

Hello Team, Can username be numbers instead of letters?  
and when user register for the forum, only uses email and password, and the system should give a random number.

Why i need to do this?  
We use [Discourse connect](https://meta.discourse.org/t/13045?silent=true) to let the users sign in with our wordpress account, in our wordpress website we use the email address as the username, so when the users are signing to our discourse for the first time the system is giving the the same username from our website which is their email address, at this point the email is exposed..

---

<div class="post-metadata">

### Author: ![Jay91](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jay91/32/135181_2.png) [@Jay91](https://meta.discourse.org/u/Jay91)
#### Post date: [5 januari 2022 om 09:04 UTC](https://meta.discourse.org/t/can-usernames-be-numbers-instead-of-letters/213648/2 "2022-01-05T09:04:31Z")

</div>

Any help please? i really need to fix this problem.  
i have more than 3000 users in my wrodpress like 100 of them signed up to my discourse with this issue, and had to ask them one by one to edit their username.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [6 januari 2022 om 21:25 UTC](https://meta.discourse.org/t/can-usernames-be-numbers-instead-of-letters/213648/3 "2022-01-06T21:25:37Z")

</div>

> [@Jay91](#):
>
> Can username be numbers instead of letters?

Yes.

> [@Jay91](#):
>
> we use the email address as the username

You shouldn’t send the email address as `username` in the [Discourse Connect](https://meta.discourse.org/t/13045?silent=true) payload. Discourse will generate a username that isn’t based on the email address as long as you use a recent beta version or are on the tests-passed branch. Or, you generate a username in your [Discourse Connect](https://meta.discourse.org/t/13045?silent=true) endpoint and send it in the payload.

---

<div class="post-metadata">

### Author: ![Jay91](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jay91/32/135181_2.png) [@Jay91](https://meta.discourse.org/u/Jay91)
#### Post date: [6 januari 2022 om 21:38 UTC](https://meta.discourse.org/t/can-usernames-be-numbers-instead-of-letters/213648/4 "2022-01-06T21:38:25Z")

</div>

Sorry, i don`t understand anything of this.  
is there anyway to do it for non professional person like me?  
I can accept another option as well, can i force the users to select their username when initially create the account through the SSO?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [6 januari 2022 om 21:47 UTC](https://meta.discourse.org/t/can-usernames-be-numbers-instead-of-letters/213648/5 "2022-01-06T21:47:41Z")

</div>

When using [Discourse Connect](https://meta.discourse.org/t/13045?silent=true) as your SSO, you are asking Discourse to delegate “all things login” to your Identity Provider of choice. In this case, it’s the job of your Identity Provider system to send Discourse the appropriate username for a user.

---

<div class="post-metadata">

### Author: ![Jay91](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jay91/32/135181_2.png) [@Jay91](https://meta.discourse.org/u/Jay91)
#### Post date: [6 januari 2022 om 21:53 UTC](https://meta.discourse.org/t/can-usernames-be-numbers-instead-of-letters/213648/6 "2022-01-06T21:53:03Z")

</div>

> [@Falco](#):
>
> When using [Discourse Connect](https://meta.discourse.org/t/13045) as your SSO, you are asking Discourse to delegate “all things login” to your Identity Provider of choice. In this case, it’s the job of your Identity Provider system to send Discourse the appropriate username for a user.

That sounds very clear.

Can i achieve the below, like we force the users to change the user name after logging in for the first time?  
simple a window pop`s up and ask the user to change the username or select a new one.

> [@Jay91](#):
>
> I can accept another option as well, can i force the users to select their username when initially create the account through the SSO?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [6 januari 2022 om 23:24 UTC](https://meta.discourse.org/t/can-usernames-be-numbers-instead-of-letters/213648/7 "2022-01-06T23:24:16Z")

</div>

When using [Discourse Connect](https://meta.discourse.org/t/13045?silent=true) it’s up for your Identity Provider to ask the user about the preferred username and pass it to Discourse in the auth payload.

---

<div class="post-metadata">

### Author: ![Jay91](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jay91/32/135181_2.png) [@Jay91](https://meta.discourse.org/u/Jay91)
#### Post date: [7 januari 2022 om 16:25 UTC](https://meta.discourse.org/t/can-usernames-be-numbers-instead-of-letters/213648/8 "2022-01-07T16:25:16Z")

</div>

Our username is fixed, we can`t do anything about it especially with wide user base.  
We must take the action from Discourse.  
But sounds there is no options.
