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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...