Is there a way to get the list of all users I n the AD group using LDAP search?
Hi kiran331, taking from another answer: https://answers.splunk.com/answers/208620/ldapsearch-how-do-i-show-members-of-a-group-along.html
| ldapsearch domain="<domain>" search=(&(objectClass=user)(memberOf="<GroupDN>")) attrs=sAMAccountName
You'll want to update <GroupDN> to be the name of the group you are interested in, ditto for the <domain> parameter.
Please let me know if this answers your question!
View solution in original post