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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...