How to get LDAP Import to show Nested Groups
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2015 03:02 PM
I am looking to see if anyone has figured out a way to display nested groups in ServiceNow. If LDAP imports a group and its members, I need to see any nested groups that are contained in the parent group and all of the members. If a group is a member of any other groups or if a group has groups as members I need to be able to see, display and report on this in ServiceNow. Thanks in advance for any advice you can provide!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2015 06:28 PM
Make sure you Starting Search directory just contains the DC='s. Then on your LDAP OU definition, try limiting what you are filter. We had to use something like this: (&(objectClass=person)(mail=*))
This worked for us versus building a whole bunch of OU definitions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2015 06:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2015 08:02 AM
Only add a related Matching rule OID " 1.2.840.113556.1.4.1941 " in filter " like (&(objectCategory=Person)(memberOf:1.2.840.113556.1.4.1941:=CN=...)) .
https://msdn.microsoft.com/en-us/library/windows/desktop/aa746475(v=vs.85).aspx
Matching rule OID | String identifier (from Ntldap.h) | Description |
| LDAP_MATCHING_RULE_BIT_AND | A match is found only if all bits from the attribute match the value. This rule is equivalent to a bitwise AND operator. |
| LDAP_MATCHING_RULE_BIT_OR | A match is found if any bits from the attribute match the value. This rule is equivalent to a bitwise OR operator. |
| LDAP_MATCHING_RULE_IN_CHAIN | This rule is limited to filters that apply to the DN. This is a special "extended match operator that walks the chain of ancestry in objects all the way to the root until it finds a match. |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2015 02:01 PM
Thanks for the info on Matching rule OID, I will try to take a look at this in a couple of weeks when I get some time.