<?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 How to create a search to alert me when a user is part of one or more groups in a specific OU? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-to-alert-me-when-a-user-is-part-of-one-or/m-p/449286#M127236</link>
    <description>&lt;P&gt;I'm having trouble writing a query in splunk to notify me when a user has been added to one or more groups in a specific ou. Here is what is in place and it was recommended to me to move it to splunk.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;A batch file is run to query the users of the specific secure OU&lt;BR /&gt;
dsquery group &lt;CODE&gt;"OU=Secure,OU=Folder,,DC=Domaint" |dsget group -members -expand|dsget user -samid -office -display&lt;/CODE&gt; &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;This is exported out as a csv and cosume by a stanging table that runs a stored procedure to check for duplicate samid&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;From here SQL reporter emails out&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Since all the groups start with the same name i.e. Secure* I can search and find a lot of usual information in the logs of splunk. &lt;BR /&gt;
My Current search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;secure EventCode=4627
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 19 Mar 2019 14:24:09 GMT</pubDate>
    <dc:creator>loza176</dc:creator>
    <dc:date>2019-03-19T14:24:09Z</dc:date>
    <item>
      <title>How to create a search to alert me when a user is part of one or more groups in a specific OU?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-to-alert-me-when-a-user-is-part-of-one-or/m-p/449286#M127236</link>
      <description>&lt;P&gt;I'm having trouble writing a query in splunk to notify me when a user has been added to one or more groups in a specific ou. Here is what is in place and it was recommended to me to move it to splunk.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;A batch file is run to query the users of the specific secure OU&lt;BR /&gt;
dsquery group &lt;CODE&gt;"OU=Secure,OU=Folder,,DC=Domaint" |dsget group -members -expand|dsget user -samid -office -display&lt;/CODE&gt; &lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;This is exported out as a csv and cosume by a stanging table that runs a stored procedure to check for duplicate samid&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;From here SQL reporter emails out&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Since all the groups start with the same name i.e. Secure* I can search and find a lot of usual information in the logs of splunk. &lt;BR /&gt;
My Current search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;secure EventCode=4627
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Mar 2019 14:24:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-to-alert-me-when-a-user-is-part-of-one-or/m-p/449286#M127236</guid>
      <dc:creator>loza176</dc:creator>
      <dc:date>2019-03-19T14:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search to alert me when a user is part of one or more groups in a specific OU?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-to-alert-me-when-a-user-is-part-of-one-or/m-p/449287#M127237</link>
      <description>&lt;P&gt;Do you just want an alert/report daily/weekly etc to give you a list of the groups membership? &lt;BR /&gt;
-or- &lt;BR /&gt;
Do you just want the report if the membership changes?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 15:16:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-to-alert-me-when-a-user-is-part-of-one-or/m-p/449287#M127237</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-03-19T15:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search to alert me when a user is part of one or more groups in a specific OU?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-to-alert-me-when-a-user-is-part-of-one-or/m-p/449288#M127238</link>
      <description>&lt;P&gt;@nickhillscpl Just an alert if the membership changes. &lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 19:20:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-to-alert-me-when-a-user-is-part-of-one-or/m-p/449288#M127238</guid>
      <dc:creator>loza176</dc:creator>
      <dc:date>2019-03-19T19:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search to alert me when a user is part of one or more groups in a specific OU?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-to-alert-me-when-a-user-is-part-of-one-or/m-p/449289#M127239</link>
      <description>&lt;P&gt;Have you looked at additional event codes, like 4728, 4732, 4756? Those logs would identify when a user is being added to a group. The only thing is that you will need the group names in a lookup. &lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 00:52:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-to-alert-me-when-a-user-is-part-of-one-or/m-p/449289#M127239</guid>
      <dc:creator>begleyj1</dc:creator>
      <dc:date>2019-10-25T00:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a search to alert me when a user is part of one or more groups in a specific OU?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-to-alert-me-when-a-user-is-part-of-one-or/m-p/449290#M127240</link>
      <description>&lt;P&gt;look for those event codes: 4728 4729 4732 4735 4737 4378 4756 4757&lt;BR /&gt;
then write your own logic ...&lt;BR /&gt;
i think there are plenty of answers in this forum regarding changes in groups with windows event codes&lt;BR /&gt;
see here to get an idea of use cases and how to work with the event codes data:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/222668/monitor-ad-group-changes.html"&gt;https://answers.splunk.com/answers/222668/monitor-ad-group-changes.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/558526/find-out-who-changed-an-ad-account-password.html"&gt;https://answers.splunk.com/answers/558526/find-out-who-changed-an-ad-account-password.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/132146/ad-user-groups.html"&gt;https://answers.splunk.com/answers/132146/ad-user-groups.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 01:46:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-to-alert-me-when-a-user-is-part-of-one-or/m-p/449290#M127240</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-10-28T01:46:57Z</dc:date>
    </item>
  </channel>
</rss>

