You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to create users via the REST API (users.create) without password? These users need to be able to log in via a custom OAuth2 provider which doesn't work if a user has a password set.
I know that users are created implicitly upon first login via OAuth2 but in this scenario I don't get the user ID from RocketChat which I need to trigger updates from a foreign system later. That's why my plan is to create users in RocketChat manually before they start using RocketChat.
The text was updated successfully, but these errors were encountered:
As a workaround I now manually connect to the MongoDB database of RocketChat and modify the services field of the newly created user. With JavaScript this would look like this:
(user.id is the internal user ID within RocketChat, as returned e.g. by the users.create API call. user.username is the ID as returned by my custom OAuth2 service.)
Is there a way to create users via the REST API (
users.create
) without password? These users need to be able to log in via a custom OAuth2 provider which doesn't work if a user has a password set.I know that users are created implicitly upon first login via OAuth2 but in this scenario I don't get the user ID from RocketChat which I need to trigger updates from a foreign system later. That's why my plan is to create users in RocketChat manually before they start using RocketChat.
The text was updated successfully, but these errors were encountered: