<?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: How to compare a list of disabled users from Source A to a list of application users from Source B, both with different field names for the user account? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191490#M38113</link>
    <description>&lt;P&gt;What if I wanted to compare all the Active users in source="All Directory Users Status Rpt.csv to ensure there's a matching "User ID" for each "Username" in source="Siloed Application User List.csv" and for any "User ID" not found/matched pipe to a table.  &lt;/P&gt;

&lt;P&gt;This search would  ensure two things - no Orphaned accounts and also no accounts exist with different usernames. &lt;/P&gt;</description>
    <pubDate>Wed, 25 Mar 2015 05:29:53 GMT</pubDate>
    <dc:creator>kgreat</dc:creator>
    <dc:date>2015-03-25T05:29:53Z</dc:date>
    <item>
      <title>How to compare a list of disabled users from Source A to a list of application users from Source B, both with different field names for the user account?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191481#M38104</link>
      <description>&lt;P&gt;Hi, the purpose of my search would be to compare two sources (they are both CSV files) to ensure there are no disabled users that exist from Source A that are found in Source B (a list of users from the application).  If there are any matches I'd like to output the list of users to a table.  The goal is to make sure the application does not still contain orphaned users that have been disabled from the directory.  The problem is that some applications still maintain a local list of users rather than leveraging a single source of users as to why this type of comparison is sometimes required. &lt;/P&gt;

&lt;P&gt;Source A (Lists All users from the directory and their status)&lt;BR /&gt;
Field Names:&lt;BR /&gt;
User ID&lt;BR /&gt;
User Status  (with values either Active or Disabled)&lt;BR /&gt;
First Name&lt;BR /&gt;
Last Name&lt;/P&gt;

&lt;P&gt;Source B (Lists all users found maintained in an application)&lt;BR /&gt;
Username&lt;BR /&gt;
First Name&lt;BR /&gt;
Last Name&lt;/P&gt;

&lt;P&gt;The two different sources use different field names for the user account but it's the same values. Source A uses "Username" and Source B "uses" User ID"  &lt;/P&gt;

&lt;P&gt;Looking for the most efficient way to compare the two sources. Any users found would be considered orphaned users. We then would notify the application owner so they can disable/delete/remove the account from the application. &lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2015 16:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191481#M38104</guid>
      <dc:creator>kgreat</dc:creator>
      <dc:date>2015-03-21T16:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a list of disabled users from Source A to a list of application users from Source B, both with different field names for the user account?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191482#M38105</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=A OR source=B | eval user = coalesce(Username, 'User ID') | stats dc(source) as dc by user | where dc &amp;gt; 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That's taking the fields from both sources, throws it into one &lt;CODE&gt;user&lt;/CODE&gt; field and then counts the number of sources for each user. Everyone with more than one source is kept in the results.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2015 17:45:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191482#M38105</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-03-21T17:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a list of disabled users from Source A to a list of application users from Source B, both with different field names for the user account?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191483#M38106</link>
      <description>&lt;P&gt;It appears by using the following search command that I'm  just adding both sources together which is not result I was looking for. &lt;/P&gt;

&lt;P&gt;source="All Directory Users Status Rpt.csv" OR source="Siloed Application User List.csv"  | eval user = coalesce(Username, 'User ID') | stats dc(source) as dc by user | where dc &amp;gt; 1&lt;/P&gt;

&lt;P&gt;As a test I inserted one Disabled User ID/Username in both sources so the ideal results should return at least this one bad user. &lt;/P&gt;

&lt;P&gt;Here are the Fields and values from source="All Directory Users Status Rpt.csv"&lt;BR /&gt;
"User ID"=obad&lt;BR /&gt;
"First Name"=Bad&lt;BR /&gt;
"Last Name"=Orphan &lt;BR /&gt;
"Termination Date"=3/18/15 21:46&lt;BR /&gt;
"User Status"=Disabled&lt;/P&gt;

&lt;P&gt;Here are the Fields and values from source="Siloed Application User List.csv"&lt;BR /&gt;
Username=obad&lt;BR /&gt;
"First Name"=Bad&lt;BR /&gt;
"Last Name"=Orphan&lt;/P&gt;

&lt;P&gt;Because the "User Status"=Disabled in the source="All Directory Users Status Rpt.csv" and there is a matching Username in the source="Siloed Application User List.csv" the results should identify the existing user from source="Siloed Application User List.csv". &lt;/P&gt;

&lt;P&gt;I hope that makes more sense.  Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2015 19:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191483#M38106</guid>
      <dc:creator>kgreat</dc:creator>
      <dc:date>2015-03-21T19:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a list of disabled users from Source A to a list of application users from Source B, both with different field names for the user account?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191484#M38107</link>
      <description>&lt;P&gt;Yup, my search would yield that user. If it doesn't, take a step back and run this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="All Directory Users Status Rpt.csv" OR source="Siloed Application User List.csv" | eval user = coalesce(Username, 'User ID')
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check it has one entry from source A and one entry from source B, where both entries have &lt;CODE&gt;user=obad&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2015 20:14:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191484#M38107</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-03-21T20:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a list of disabled users from Source A to a list of application users from Source B, both with different field names for the user account?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191485#M38108</link>
      <description>&lt;P&gt;Hi Martin, I'm still getting back every user in both lists which is a total of 62, 317 users with both lists combined.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2015 20:27:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191485#M38108</guid>
      <dc:creator>kgreat</dc:creator>
      <dc:date>2015-03-21T20:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a list of disabled users from Source A to a list of application users from Source B, both with different field names for the user account?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191486#M38109</link>
      <description>&lt;P&gt;That means all users are present in both sources because the distinct count of source values by user is greater than one.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2015 21:15:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191486#M38109</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-03-21T21:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a list of disabled users from Source A to a list of application users from Source B, both with different field names for the user account?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191487#M38110</link>
      <description>&lt;P&gt;All users are at least listed in the first source either as "User Status"=Disabled or "User Status"="Active" with an associated "User ID".  Then the second source contains a small number of those users.  The goal of the search is to verify that nobody from the first source with "User Status"=Disabled shows up in the second list.  And if there are any Disabled users then pipe those usernames/user IDs to a table. &lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2015 22:42:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191487#M38110</guid>
      <dc:creator>kgreat</dc:creator>
      <dc:date>2015-03-21T22:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a list of disabled users from Source A to a list of application users from Source B, both with different field names for the user account?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191488#M38111</link>
      <description>&lt;P&gt;If the source has both enabled and disabled users then you'll want to filter for only disabled users like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(source="All Directory Users Status Rpt.csv" "User Status"="Disabled") OR source="Siloed Application User List.csv" | eval user = coalesce(Username, 'User ID') | stats dc(source) as dc by user | where dc &amp;gt; 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 21 Mar 2015 22:55:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191488#M38111</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-03-21T22:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a list of disabled users from Source A to a list of application users from Source B, both with different field names for the user account?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191489#M38112</link>
      <description>&lt;P&gt;That worked! I'm so happy...time to celebrate!!! Thank you Martin!&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2015 23:05:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191489#M38112</guid>
      <dc:creator>kgreat</dc:creator>
      <dc:date>2015-03-21T23:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a list of disabled users from Source A to a list of application users from Source B, both with different field names for the user account?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191490#M38113</link>
      <description>&lt;P&gt;What if I wanted to compare all the Active users in source="All Directory Users Status Rpt.csv to ensure there's a matching "User ID" for each "Username" in source="Siloed Application User List.csv" and for any "User ID" not found/matched pipe to a table.  &lt;/P&gt;

&lt;P&gt;This search would  ensure two things - no Orphaned accounts and also no accounts exist with different usernames. &lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2015 05:29:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-compare-a-list-of-disabled-users-from-Source-A-to-a-list/m-p/191490#M38113</guid>
      <dc:creator>kgreat</dc:creator>
      <dc:date>2015-03-25T05:29:53Z</dc:date>
    </item>
  </channel>
</rss>

