OU Definition in LDAP Integration not retrieving group members

Tariq Alshara
Tera Expert

Hello ServiceNow team, hope all is well!

I have a question regarding integration with LDAP and Active Directory

I currently integrated Servicenow with a client's Active Directory and have defined two LDAP OU Definitions, one for the groups and one for the users

My group LDAP OU Definition has an RDN built like this:

OU=ServiceNowGRPs, OU=Systems Service Accounts

The first OU (ServiceNowGRPs) is a subfolder that resides within a parent folder/OU (Systems Service Accounts)

it is retrieving the groups correctly when I browse and also when I run a scheduled job designated to import the groups into ServiceNow

My user LDAP OU Definition has an RDN built like this:

OU=ISC-Emp, OU=MODA-ISC

It is retrieving the users when I browse but when I run the scheduled job it does not retrieve any users which is my first issue

My second and main issue is that when retrieving, I retrieve the groups then I retrieve all users to remediate the first issue but the groups show up empty with no users in them even though on the Active Directory there are users in those groups

 

Any ideas/documentation/suggestions would be highly appreciated

 

Best Regards,

 

5 REPLIES 5

Mike Patel
Tera Sage

Few thing to check,

Do you have source field on user record mapped ?

Do you have OnStart transform map script?

gs.include("LDAPUtils"); 

var ldapUtils = new LDAPUtils();

ldapUtils.setLog(log);

Do you have OnAfter transform script ?
ldapUtils.addMembers(source, target);

 

refer to https://community.servicenow.com/community?id=community_question&sys_id=9ac9d1fcdb0f1c54fa192183ca961986

Hello Mike, I have checked what you've mentioned and it seems I am missing the OnAfter transform script, should it be against my LDAP User import transform map?

Also, Mike, I have realized that when I browse the users sitting on the client's AD, there is no "member of" attribute, nor is there a "members" attribute when I browse the groups, I believe that could be my issue, what do you think?

member attribute is fine. OnAfter script is for Group Transform Map. also make sure source field is not getting cut of on user record it needs to be full. Share some screenshots users with source field and screenshots of groups transform maps.