We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

26 REPLIES 26

Sathwik1
Tera Expert

@Pradeep Sharma could you please check this

Can you please provide more details. Do you want to set this as a default password for any user created? or is this for a single user?

For any user...