Set password for lots of newly imported users

Hi,

my company decided to switch from HipChat to R.C and I used the “Hipchat (.tar.gz)” import feature which works as expected. Great work on this, thanks! :slight_smile:

Now I have a huge list with user accounts but I’m looking for a way to do something like “Set random password, send welcome mail, force pw reset on first login” for every user in bulk.

I know that I can do this on every single user by hand, but I hope that there is an easier way to do this for every imported user which involves way less clicking for me.

Best regards,
Felix

Hi Felix,

did you check the API? Should be possible with some (e.g. bash) scripting.

https://rocket.chat/docs/developer-guides/rest-api/

Ciao!

That would have been my next idea, but because everyone who imports an old dataset from another chat system maybe has the same problem I thought another option would exist. But thanks for the reply :slight_smile:

For everybody who encounters the same problem:

I wrote a blog post (sorry, it’s in german) about it and published the Python script I used for this. Maybe it helps somebody :slight_smile:

https://blog.felixbreidenstein.de/posts/2018-10-15-rocketchat/

3 Likes

This is awesome - thanks for sharing, Felix!

Bombe :slight_smile: