How to reset the password for multiple users in ServiceNow?

NarayanaS
Tera Contributor

How to reset the password for multiple users in ServiceNow?

Need to reset the password for 50 users at a time

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @NarayanaS 

Since the password is different for each user, it's better to use the import set method, which is the recommended approach. If you want to keep the same password for the first time, you can go to the list view, select the users, use the down arrow key, and add the new password.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Anand Kumar P
Giga Patron
Giga Patron

Hi @NarayanaS ,

 

You can use below script in background script and update it.


var gr = new GlideRecord('sys_user');
gr.addEncodedQuery(“list of 50. Users query “);;
gr.query();
var count = gr.getRowCount();
if (count > 0) {
while (gr.next()) {
gr.setDisplayValue("user_password","New password ");

gr.update();

}
}

 

Or you can import the passwords you can update from list for bulk update shift +control+down arrow .

 

If my response helped, please mark it as the accepted solution and give a thumbs up👍.
Thanks,
Anand

Ankur Bawiskar
Tera Patron
Tera Patron

@NarayanaS 

check this

How to enable password reset option to only couple of users/groups. 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader