- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2020 10:00 AM
Hi All,
I need to get all groups from LDAP node, but I have to a group OU=ServiceNow
Filter: (&(objectclass=group)(!(OU=ServiceNow)))
But after importing the group still i can see the group with OU=ServiceNow.
Thanks
Solved! Go to Solution.
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2020 11:58 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2020 11:56 AM
Hi,
OU is updated properly right?
Thanks,
Ashutosh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2020 11:58 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2020 10:27 PM
Hi
Can we not achieve this on the staging table, before creating the transform map.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2020 10:45 PM
Hi,
So you want to exclude particular groups from importing during LDAP?
You can handle this using onBefore transform script or else using onAfter delete that group
Is the OU not filtering records properly?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2020 11:07 PM
Hi Ankur,
I tried with this filter. still i could see all the group's getting imported from AD to Staging table.
Filter: (&(objectclass=group)(!(OU=ServiceNow)))
Thanks