Update user data from AD

david_hreben
Giga Expert

Hello,

I was wondering if there is a way to update a user record in ServiceNow right after a change have taken place in Active Directory? I was wondering if it can be done in a script so that it can be executed though Java Console or any other way.

 

One thing I have noticed also, the related link "Refresh from LDAP" on the user record does not seem to update anything.

 

There might be a way to do it with the link listed below but I just want to make sure if it can be achieved in any other way;

URL:Orchestration Example - Active Directory User Management - ServiceNow Wiki

 

 

Thanks,

14 REPLIES 14

rajesh73_k
Kilo Expert

You can write a schedule data import as per attached screen shot.schedule data import.jpg


This will pull delta data from IMDL/AD in every 10 min.


Thanks Kumar,



Your response is a valid one, I currently have it set up to run everyday but I would not want to mess up the configuration. I was in pursue of something different. An update for a single record and if possible that runs behind the the LDAP config..but it seems that this is not possible. Maybe with orchestration I can have chance.


JohnG3
Mega Guru

Hi David,



I have noticed sometimes it takes a while for the Active Directory user changes to replicate to the Domain Controller that ServiceNow is binding too. You may be able to leverage the code from the UI Action and schedule it to run a few times.


Region capture 2.png



Normally, the out of box, LDAP Listener detects the changes fairly readily if configured properly.



Cheers,



John


Would you give an example of a well configured LDAP listener? I have it set up in our environment but does not seem to work fine. Thanks!


Hi David,



Normally, if your LDAP Server configuration is updating users properly through schedule LDAP loads you have a configuration which should support the LDAP listener on the ServiceNow side of things. Sometimes, you have to Stop and Start the Listener to resynchronize. The Eureka release provides real-time status for the listener. For reference: http://wiki.servicenow.com/index.php?title=LDAP_Integration#LDAP_Listener



Thanks,



John