How can I use a a search filter to display users of a specific group?
I’ve tried the following:
(&
(objectCategory=user)
(memberOf=MyCustomGroup)
)
and this:
(&
(objectCategory=user)
(memberOf=cn=SingleSignOn,ou=Groups,dc=tis,dc=eg,dc=ddd,DC=com)
)
but neither display users of a specific group.
memberOf (in AD) is stored as a list of distinguishedNames. Your filter needs to be something like:
If you don’t yet have the distinguished name, you can search for it with:
and return the attribute
distinguishedName. Case may matter.