Bulk passwords update

Hi all,

Version 2.37.9.1.

We are in the process of a major scale-up. Therefore, we are trying to find an effective tool for bulk importing users (with passwords).

Currently, we are using BIF for creating users. It is a good tool, but it does not allow us to create or update user passwords. As a result, it usually requires a lot of manual work.

For testing purposes, I managed to create a JSON payload for a single user that can update the password. I just added a user credentials part to the JSON file:

But again, it is a lot of manual work.

So, I am thinking about some sort of Excel template where all necessary information about users will be placed in columns, allowing us to automate the process. The plan is then to convert such a file into JSON format to be used in the import/export app or with an API such as Postman.

I do believe it must be possible. Maybe someone has already created such a template. But I don’t know where to start. That’s why I am here kindly asking for your assistance.

Also, if you know another effective way to bulk update user passwords, I would be gratefull if you share it wuth me!

HI Mikhailo,

Send me private message with your email. I can help you with it.

Regards,
Ulanbek

1 Like

@Ulanbek is this something you could share with the community, am guessing other people might be interested on the solution.

1 Like

Hi there,

Yes, you are right @WaluQ

I will show 2 methods how to change the users password in bulk.

Please find attached instruction and XLS template file
Bulk password update instruction.docx (733.7 KB)
users.xlsx (9.6 KB)

Should you have any other questions, feel free to ask

Regards,
Ulanbek

4 Likes

Thank you!

2 Likes

Dear @Ulanbek

Many thanks for your shared resources which helped me a lot to understand how to use Postman to make loop queries with the pre-request and post-response scripts. Your detailed explanations really helped me out to figure it out.

For your information, I noticed there is a slight mistake in the excel template file to build the user array: I had to add " character at the beginning of cells H1 and I1 to make it work.

I also removed the comma from the end of the last line (cell E14) as it was the last element of the array.

Finally, I also found out that the is a more simple way to do loops using a csv file attached to the runner in postman, by following this video:
Loop Through a Data File | Postman Level Up (youtube.com)

Instead of coding the loop in the pre-script and postscript, you add a csv file as a data file in the Postman Runner, and Postman automatically loops the csv to build and commit the PATCH API requests.

In my case, the csv file attached as a data file to the runner was:
id,code
azerty12uiu3,code1
qsdf123hjkl,code2

And the patch request in postman looked like this:


I thought this might help others as it is not possible anymore to do partial updates for metadata in Import/export app in v2.41.

3 Likes

Just FYI Passwords is also something you can affect with the User Extended App from @eyeseetea . For us this allows a more decentralized approach for user creation/maintenance.

3 Likes

Thank you, I also noticed that slight mistake in Excel yesterday, when tried to follow @Ulanbek instructions. Anyway, the job he has done is just Amazing! And very helpfull!
P.S. @gregory , TY for your video also! Havent tried this approach yet though, But TY!!

P.P.S. CSV file with Postman runner works like a charm!!

1 Like

Interesting, thanks a lot. But this app is not compatible with V2.41.
Do you know if “User profile” App provides the same functionalities as User extended app?

Interesting, didn’t realize it wasn’t functional on V41 (apologies for that oversight!) I’m not familiar with the User Profile App or any other app that can work in the same way. Will have a look though.