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

@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

@Sathwik 

Let me know if I have answered your question.

If so, please mark appropriate answer as correct & helpful to close the thread.

If not, please let us know if you need some more assistance.

Regards
Ankur

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

@Sathwik 

If your query is resolved please mark mark appropriate answer as correct & helpful to close the thread and others can be benefited by this.

Regards
Ankur

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

@Sathwik 

Let me know if I have answered your question.

If so, please mark my response as correct & helpful to close the thread and others can be benefited by this.

If not, please let us know if you need some more assistance.

Regards
Ankur

 

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

Hi Ankur - I don't think any value is added here by repeating the same message