# How can I disable register username window and use default username automatically

**URL:** <https://forums.rocket.chat/t/how-can-i-disable-register-username-window-and-use-default-username-automatically/16295>\
**Category:** Community Support\
**Tags:** rocketchat-apps\
**Created:** [March 23, 2023, 11:04am UTC](https://forums.rocket.chat/t/how-can-i-disable-register-username-window-and-use-default-username-automatically/16295 "2023-03-23T11:04:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Onur\_D](https://avatars.discourse-cdn.com/v4/letter/o/d07c76/32.png) [@Onur\_D](https://forums.rocket.chat/u/Onur_D)\
**Post date:** [March 23, 2023, 11:04am UTC](https://forums.rocket.chat/t/how-can-i-disable-register-username-window-and-use-default-username-automatically/16295/1 "2023-03-23T11:04:55Z")

</div>

Hello friends,

I integrated rocket chat with keycloak.

When I created new user in keycloak and trying to login to the rocketchat, register username popup is shown to declare a username to the new user.

 ![Screenshot from 2023-03-23 14-07-23](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/e/e668a36864cb74ee86e1c8bb699963d9029da110.png)

But I want to do this process automatically so need to disable this popup. It should have given default username which is written into the related input.

I already set the settings as Administration \> Accounts \> Registration \> Registration Form as Disabled  
But it is not working well.

Is there any way to disable this popup ? Anyone has information ?  
Thank you

---

<div class="post-metadata">

**Author:** ![Onur\_D](https://avatars.discourse-cdn.com/v4/letter/o/d07c76/32.png) [@Onur\_D](https://forums.rocket.chat/u/Onur_D)\
**Post date:** [March 27, 2023, 3:13pm UTC](https://forums.rocket.chat/t/how-can-i-disable-register-username-window-and-use-default-username-automatically/16295/2 "2023-03-27T15:13:13Z")

</div>

The problem is solved.

---

<div class="post-metadata">

**Author:** ![dilonNJ](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dilonnj/32/1580_2.png) [@dilonNJ](https://forums.rocket.chat/u/dilonNJ)\
**Post date:** [April 4, 2023, 9:02pm UTC](https://forums.rocket.chat/t/how-can-i-disable-register-username-window-and-use-default-username-automatically/16295/3 "2023-04-04T21:02:31Z")

</div>

I have this same exact problem. What was the solution?

Though my setup I’m sure is different. I have two different sites/domains running WordPress. Each one has the MiniOrange OAuth Server 5.1 plugin installed, and they both call one chat server that is running Rocket Chat 6. and within Rocket Chat, I have the two custom OAuth clients running.

MiniOrange actually helped me get the integration running between the two. And that works.

Once the user goes to the RocketChat server, I have RocketChat configured to ask if they are “Logging In from [www.domain1.com](http://www.domain1.com)” or “Logging in from [www.domain2.com](http://www.domain2.com)”.

Once they click either option, I want them to go RIGHT INTO Chat, after they authenticate from WordPress to RocketChat.

Ideally they would also NOT get that pop-up to “Allow” or “Deny”.

But right now when someone goes from the two OAuth server Wordpress site, to the Chat server, they are first getting the “Allow” or “Deny” prompt, but after “Allowing” they then get the pop-up asking them to register a username. And this pop-up does pass the correct username from WordPress, but it allows them to change it, and I don’t want users to change it.

How do I stop the “Allow” or “Deny”? And how do I stop the “REGISTER USERNAME” from appearing, and just passing the username into RocketChat?

Thanks all.

![image](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/3/3c3b90f3ce7969ccc91837e70e1896bd22631676.png)

---

<div class="post-metadata">

**Author:** ![nullification](https://avatars.discourse-cdn.com/v4/letter/n/8edcca/32.png) [@nullification](https://forums.rocket.chat/u/nullification)\
**Post date:** [January 4, 2024, 3:24am UTC](https://forums.rocket.chat/t/how-can-i-disable-register-username-window-and-use-default-username-automatically/16295/4 "2024-01-04T03:24:53Z")

</div>

Hi everyone,  
Happy New Year:slight\_smile:  
By any chance any update here, since we are facing the same problem?  
Our setup is fairly simple default container setup plus Keycloak.  
thanks in advance.

---

<div class="post-metadata">

**Author:** ![User20r0](https://avatars.discourse-cdn.com/v4/letter/u/85f322/32.png) [@User20r0](https://forums.rocket.chat/u/User20r0)\
**Post date:** [October 10, 2025, 6:19am UTC](https://forums.rocket.chat/t/how-can-i-disable-register-username-window-and-use-default-username-automatically/16295/6 "2025-10-10T06:19:14Z")

</div>

Hello community! I am facing same issues while I am using rocketchat on webview in android device? any updates . please do reply.  
Thank you
