LDAP Source sys_user accounts in Servicenow not being unlocked after LDAP account unlocked.


Description

Behavior: Configured LDAP server account unlocked.  LDAP Source account in sys_user table not being unlocked after sync from configured LDAP Server.

Cause

Out of the box User onBefore Transform Script is commented out:

"... 
//Optional: Reactivate and unlock the user account 
// target.active = true; 
//target.locked_out = ctrl.substr(-2, 1) == "1"; 
..." 

 

Resolution

Need to uncomment out of the box User onBefore transform script,  onBefore Transform Script: 


"... 
//Optional: Reactivate and unlock the user account 
target.active = true; 
target.locked_out = ctrl.substr(-2, 1) == "1"; 
..."