How to set default password

BHUSHAN KEWAT
Tera Contributor

Once the new user is created set the default password: WelcomeToOraganizationNAME@123

1 ACCEPTED SOLUTION

Use 'before' Business Rule on Insert and write a script which is mentioned below

RaviGaurav_0-1727244611823.png

current.user_password.setDisplayValue("Welcome@2024");
--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

ï”— YouTube: https://www.youtube.com/@learnservicenowwithravi
ï”— LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/

View solution in original post

7 REPLIES 7

@Ravi Gaurav When I insert a new user, his password should automatically be set to Welcome@2024. How can this requirement be achieved?

Use 'before' Business Rule on Insert and write a script which is mentioned below

RaviGaurav_0-1727244611823.png

current.user_password.setDisplayValue("Welcome@2024");
--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

ï”— YouTube: https://www.youtube.com/@learnservicenowwithravi
ï”— LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/

Hi @Ravi Gaurav 

Thank you for your guidance on using a 'before' Business Rule to set the default password for new users. I appreciate the clarity in your explanation and the provided script snippet. I will implement this solution to ensure that new user passwords are set correctly to "Welcome@2024".

Your contributions to the ServiceNow community are invaluable, and I'm grateful for your support. I look forward to learning more from your content on YouTube and LinkedIn.

Best regards,
Bhushan Kewat