Reactivate the users in ServiceNow when the users made to active from inactive state in Active DirectorySummaryOn an LDAP enabled instance while users are imported if a User in Active Directory changed to active from the disabled state, the same user is not made to active state in ServiceNow.InstructionsTo Deactivate the user in ServiceNow if the user is disabled in AD: ServiceNow deactivates LDAP-disabled users during transform based on 'userAccountControl' and this is achievable using the transform script.ServiceNow instance has the out of the box "OnBefore" transform script in the LDAP User Import Transform Map.The Transform Script is inactive by default and please activate the script for the deactivating the user if the user disabled in AD To Reactivate the user in ServiceNow if the User changed to active state from inactive in AD: Please uncomment the below lines from the onbefore script used in the transform map. target.active = true;target.locked_out = ctrl.substr(-2, 1) == "1"; You'll find a sample OnBefore Transform Script attached to this article: LDAP User Import