All Apps and Add-ons

How to use LDAp search to get the list of users in a AD group?

kiran331
Builder

Hi

Is there a way to get the list of all users I n the AD group using LDAP search?

0 Karma
1 Solution

muebel
SplunkTrust
SplunkTrust

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

muebel
SplunkTrust
SplunkTrust

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!

Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...