K1000 LDAP Query to pull users from a group
Trying to create an LDAP query to get users from a group:
ex. Get all users in the AD Group 'Marketing'
Screenshot of the search.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
Gerhart
4 years ago
Try this Advanced Search string:
(&(samaccountname=KBOX_USER_NAME)(memberof=CN=AS_DevUser,DC=Your,DC=Domain))
You have to put a second bracket at the end and you cannot use spaces. In addition, the group name must be specified as distinguishedName.
If you also replace the "memberof" with "memberof:1.2.840.113556.1.4.1941:", nested groups are also read out via LDAP.
(&(samaccountname=KBOX_USER_NAME)(memberof:1.2.840.113556.1.4.1941:=CN=AS_DevUser,DC=Your,DC=Domain))