# Set password for lots of newly imported users

**URL:** <https://forums.rocket.chat/t/set-password-for-lots-of-newly-imported-users/2238>\
**Category:** Community Support\
**Created:** [October 12, 2018, 2:00pm UTC](https://forums.rocket.chat/t/set-password-for-lots-of-newly-imported-users/2238 "2018-10-12T14:00:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fleaz](https://avatars.discourse-cdn.com/v4/letter/f/c0e974/32.png) [@fleaz](https://forums.rocket.chat/u/fleaz)\
**Post date:** [October 12, 2018, 2:00pm UTC](https://forums.rocket.chat/t/set-password-for-lots-of-newly-imported-users/2238/1 "2018-10-12T14:00:29Z")

</div>

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! 🙂

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

---

<div class="post-metadata">

**Author:** ![localguru](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/localguru/32/12_2.png) [@localguru](https://forums.rocket.chat/u/localguru)\
**Post date:** [October 13, 2018, 12:52pm UTC](https://forums.rocket.chat/t/set-password-for-lots-of-newly-imported-users/2238/2 "2018-10-13T12:52:18Z")

</div>

Hi Felix,

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

[https://rocket.chat/docs/developer-guides/rest-api/](https://rocket.chat/docs/developer-guides/rest-api/)

Ciao!

---

<div class="post-metadata">

**Author:** ![fleaz](https://avatars.discourse-cdn.com/v4/letter/f/c0e974/32.png) [@fleaz](https://forums.rocket.chat/u/fleaz)\
**Post date:** [October 15, 2018, 12:57pm UTC](https://forums.rocket.chat/t/set-password-for-lots-of-newly-imported-users/2238/3 "2018-10-15T12:57:06Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![fleaz](https://avatars.discourse-cdn.com/v4/letter/f/c0e974/32.png) [@fleaz](https://forums.rocket.chat/u/fleaz)\
**Post date:** [October 15, 2018, 3:24pm UTC](https://forums.rocket.chat/t/set-password-for-lots-of-newly-imported-users/2238/4 "2018-10-15T15:24:26Z")

</div>

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 🙂

[https://blog.felixbreidenstein.de/posts/2018-10-15-rocketchat/](https://blog.felixbreidenstein.de/posts/2018-10-15-rocketchat/)

---

<div class="post-metadata">

**Author:** ![frdmn](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/frdmn/32/198_2.png) [@frdmn](https://forums.rocket.chat/u/frdmn)\
**Post date:** [November 12, 2018, 9:05am UTC](https://forums.rocket.chat/t/set-password-for-lots-of-newly-imported-users/2238/5 "2018-11-12T09:05:08Z")

</div>

This is awesome - thanks for sharing, Felix!

---

<div class="post-metadata">

**Author:** ![localguru](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/localguru/32/12_2.png) [@localguru](https://forums.rocket.chat/u/localguru)\
**Post date:** [November 19, 2018, 9:11pm UTC](https://forums.rocket.chat/t/set-password-for-lots-of-newly-imported-users/2238/6 "2018-11-19T21:11:50Z")

</div>

Bombe 🙂
