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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...