logo

NJP

Check if a given username & password combination is valid in ServiceNow using Background Script

Import · Dec 28, 2021 · article

Script for reference : var username = 'abel.tuter'; //Username of the user var password = 'servicenow'; //Password of the user above var authed = GlideUser.authenticate(username,password); gs.print(authed); //Returns true or false, true - successful or correct password | false - unsuccessful or incorrect password Regards, Ishaan

Labels:

View original source

https://www.servicenow.com/community/developer-blog/check-if-a-given-username-password-combination-is-valid-in/ba-p/2333376