How to set default password to a new users

Sathwik1
Tera Expert

How to set default password to a new user...when the user record inserted for the first time we need to set default password as "Sathwik@"

1 ACCEPTED SOLUTION

@Sathwik 

If you only want to set the default password for the users when you are loading in bulk then no need of Business rule.

you can handle this via onBefore transform script as well

Sample script below:

(function runTransformScript(source, map, log, target /*undefined onStart*/ ) {

	// Add your code here

	target.user_password.setDisplayValue('Sathwik@');

})(source, map, log, target);

Regards
Ankur

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

View solution in original post

26 REPLIES 26

Yes, Sathwik. It worked well for me & the suggestion provided was post a check in my PDI.

Alternatively you can use the script line as suggested by Pradeep. In case even if that does not work then  you can help with complete logic with proper screenshots for further check.

Bhagyashri Sort
Kilo Guru

Hi,

 You can use the onLoad client script to set the default password.

find_real_file.png

find_real_file.png

 

Mark it correct and helpful.

Thanks

Bhagyashri Sorte.