Set password for lots of newly imported users


#1

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


#2

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!


#3

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:


#4

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:


#5

This is awesome - thanks for sharing, Felix!


#6

Bombe :slight_smile: