# Wp discourse username generation

**URL:** https://meta.discourse.org/t/wp-discourse-username-generation/356454
**Category:** WordPress
**Tags:** sso
**Created:** [March 9, 2025, 5:50am UTC](https://meta.discourse.org/t/wp-discourse-username-generation/356454 "2025-03-09T05:50:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Mira\_Iranpour](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mira_iranpour/32/492871_2.png) [@Mira\_Iranpour](https://meta.discourse.org/u/Mira_Iranpour)
#### Post date: [March 9, 2025, 5:50am UTC](https://meta.discourse.org/t/wp-discourse-username-generation/356454/1 "2025-03-09T05:50:04Z")

</div>

Hi I successfully connected [wp discourse](https://github.com/discourse/wp-discourse) and made it a provider for my discourse however it automatically fetches the username from wordpress when someone logs in for the first time into discourse.  
I know this makes sense because its using wp as the database but in our use case. its a bit tricky due to privacy concerns.

Is there anyway to make a step after a user logs in for the first time using wordpress to be asked for a username?

Can i turn wordpress to auth provider using plugins and use openid2? would this make it the same as signing up with google which prompts users to choose a username?

thanks!

---

<div class="post-metadata">

### Author: ![Mira\_Iranpour](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mira_iranpour/32/492871_2.png) [@Mira\_Iranpour](https://meta.discourse.org/u/Mira_Iranpour)
#### Post date: [March 9, 2025, 7:46am UTC](https://meta.discourse.org/t/wp-discourse-username-generation/356454/2 "2025-03-09T07:46:29Z")

</div>

I used DIscourse OpenID connect + wp auth server plugins and solved my problem! now everyone is asked to provide a username. there is a username suggestion in the format of user1 etc but that’s fine because now people have control over using their own usernames and I don’t have to worry about their privacy.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [March 9, 2025, 7:51am UTC](https://meta.discourse.org/t/wp-discourse-username-generation/356454/3 "2025-03-09T07:51:04Z")

</div>

How did you do that username prompting?

---

<div class="post-metadata">

### Author: ![Mira\_Iranpour](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mira_iranpour/32/492871_2.png) [@Mira\_Iranpour](https://meta.discourse.org/u/Mira_Iranpour)
#### Post date: [March 9, 2025, 7:52am UTC](https://meta.discourse.org/t/wp-discourse-username-generation/356454/4 "2025-03-09T07:52:46Z")

</div>

I didn’t do anything, just the default of those two plugins seemed to work this way!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 8, 2025, 7:53am UTC](https://meta.discourse.org/t/wp-discourse-username-generation/356454/5 "2025-04-08T07:53:33Z")

</div>

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