Need to exclude specific OU from LDAP

Abhit
Tera Guru

Hi All, 

I need to get all groups from LDAP node, but I have to a group OU=ServiceNow

Filter: (&(objectclass=group)(!(OU=ServiceNow)))

find_real_file.png

But after importing the group still i can see the group with OU=ServiceNow. 

Thanks

1 ACCEPTED SOLUTION

Mike Patel
Tera Sage

I had similar requirements so I added below script on Transform Map to ignore those groups from importing.

if(source.u_dn.indexOf("OU=ServiceNow") > -1){
	ignore = true;
}

Once the group is created in SN you will have to delete it before running the job.

View solution in original post

14 REPLIES 14

Ashutosh Munot1
Kilo Patron
Kilo Patron

HI,

Did you try this:

find_real_file.png

Thanks,
Ashutosh

Hi,

I tried this but it didn't worked.

for this (&(objectClass=group)(&(ou:dn:=Chicago)(!(ou:dn:=Wrigleyville))))

i should be having dn=chicago and dn = wrgleyville right?

 

Thanks

HI,

This was example you need to use your OU name.


Thanks,
Ashutosh

Yes i searched it for the same, still All the AD groups are getting loaded to Staging table