# API OAuth registration

**URL:** <https://forums.rocket.chat/t/api-oauth-registration/6042>\
**Category:** Community Support\
**Created:** [March 10, 2020, 1:47pm UTC](https://forums.rocket.chat/t/api-oauth-registration/6042 "2020-03-10T13:47:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![juliensl](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@juliensl](https://forums.rocket.chat/u/juliensl)\
**Post date:** [March 10, 2020, 1:47pm UTC](https://forums.rocket.chat/t/api-oauth-registration/6042/1 "2020-03-10T13:47:41Z")

</div>

Hi everybody

### Description

I would like to create users using the API rest `/api/v1/users.register` endpoint to manage people before there first connection (put them in the right rooms, …).  
The fact is that I am using my custom OAuth2 connection for the authentication, with **OAuth2Server** coming from the npm _meteor/rocketchat:oauth2-server_ package.  
So, how can I link the registration with the OAuth ? The password is required, what should I write ?

### Server Setup Information

- Version of Rocket.Chat Server: 2.4.11
- Operating System: Ubuntu
- Deployment Method: snap
- Number of Running Instances: 1
- NodeJS Version: 8.17.0
- MongoDB Version: 3.6.14
- Proxy: caddy

Thank you for your work !

---

<div class="post-metadata">

**Author:** ![eloy](https://avatars.discourse-cdn.com/v4/letter/e/d6d6ee/32.png) [@eloy](https://forums.rocket.chat/u/eloy)\
**Post date:** [April 6, 2020, 8:18am UTC](https://forums.rocket.chat/t/api-oauth-registration/6042/2 "2020-04-06T08:18:41Z")

</div>

I’m having the same issue! Does anybody have the solution? Thank you 🙂

---

<div class="post-metadata">

**Author:** ![juliensl](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@juliensl](https://forums.rocket.chat/u/juliensl)\
**Post date:** [September 8, 2020, 4:14pm UTC](https://forums.rocket.chat/t/api-oauth-registration/6042/3 "2020-09-08T16:14:18Z")

</div>

Hi everybody !

Does anybody find a solution ? It is now a big problem for me 😕

I would like to dispatch my community between different channel **before** there first connection.  
I am using an OAuth authentication service, so, I have not “password” to set.

I tried to use a random password, but when I try to connect myself with Oauth, it does not work :’(

Does anybody can help me please ? 🙂
