<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AD user groups in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/AD-user-groups/m-p/135559#M27918</link>
    <description>&lt;P&gt;You need to collect the Windows Security Event logs from you domain controllers, then you need to create an alert based on a search similar to this:&lt;BR /&gt;
(EventCode=4732 OR EventCode=4728 OR EventCode=4756) (Group_Name="Domain Admins" OR Group_Name="Enterprise Admins" OR Group_Name="Schema Admins")&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:49:30 GMT</pubDate>
    <dc:creator>JeremyHagan</dc:creator>
    <dc:date>2020-09-28T16:49:30Z</dc:date>
    <item>
      <title>AD user groups</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/AD-user-groups/m-p/135558#M27917</link>
      <description>&lt;P&gt;I am looking to monitor specific AD user groups and want to create a search that alerts me to when the members of these groups change.&lt;/P&gt;

&lt;P&gt;How do I pull that information?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 20:15:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/AD-user-groups/m-p/135558#M27917</guid>
      <dc:creator>lucasjeff</dc:creator>
      <dc:date>2014-04-17T20:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: AD user groups</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/AD-user-groups/m-p/135559#M27918</link>
      <description>&lt;P&gt;You need to collect the Windows Security Event logs from you domain controllers, then you need to create an alert based on a search similar to this:&lt;BR /&gt;
(EventCode=4732 OR EventCode=4728 OR EventCode=4756) (Group_Name="Domain Admins" OR Group_Name="Enterprise Admins" OR Group_Name="Schema Admins")&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:49:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/AD-user-groups/m-p/135559#M27918</guid>
      <dc:creator>JeremyHagan</dc:creator>
      <dc:date>2020-09-28T16:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: AD user groups</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/AD-user-groups/m-p/135560#M27919</link>
      <description>&lt;P&gt;Or a little more robust, create a lookup csv file with the list of groups you care about, your "privileged groups" if you will and refer to it in your search like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wineventlog tag::host="domaincontroller" eventtype=msad-nt6-groupmembership-changes  NOT "[domainname]\\[serviceaccountthatmakeslotsofchanges]" | eval AdminAccount=upper(replace(mvindex(Security_ID,0), "[domainname]\\\\", "")) | eval ChangedAccount=upper(replace(mvindex(Security_ID,1), "[domainname]\\\\", "")) | eval GroupName=replace(mvindex(Security_ID,2), "[domainname]\\\\", "") | fields _time, host, AdminAccount, ChangedAccount, GroupName, name | search [|inputlookup PriviledgedGroups | fields GroupName] | table _time, host, AdminAccount, ChangedAccount, GroupName, name | rename name as "Action" | sort - _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Explanation:&lt;BR /&gt;
We've tagged all our Domaincontrollers&lt;BR /&gt;
We have only one domain and have both ldap and windows infrastructure app installed so i'm piggy backing off one of those eventtypes.&lt;BR /&gt;
I'm excluding a service account that makes tons of automated changes we don't care about alerting on.&lt;BR /&gt;
Then grabbing the account that did the action and the account the action was taken upon, cleaning up the text (removing the domain\ portion since we have only one domain).&lt;/P&gt;

&lt;P&gt;Then set schedule and alert parameters as needed. Results in an email like shown in the attached file&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/72i9C3BA35D30BCFEE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2015 16:57:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/AD-user-groups/m-p/135560#M27919</guid>
      <dc:creator>brooklynotss</dc:creator>
      <dc:date>2015-08-11T16:57:59Z</dc:date>
    </item>
  </channel>
</rss>

