API OAuth registration

Hi everybody


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 !

1 Like

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

Hi everybody !

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

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 ? :slight_smile: