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!

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...