<?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: Splunk Search that returns ALL the user ROLES assigned to all the specific INDEXes in Security</title>
    <link>https://community.splunk.com/t5/Security/Splunk-Search-that-returns-ALL-the-user-ROLES-assigned-to-all/m-p/112829#M3561</link>
    <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2016 07:29:36 GMT</pubDate>
    <dc:creator>chris</dc:creator>
    <dc:date>2016-11-01T07:29:36Z</dc:date>
    <item>
      <title>Splunk Search that returns ALL the user ROLES assigned to all the specific INDEXes</title>
      <link>https://community.splunk.com/t5/Security/Splunk-Search-that-returns-ALL-the-user-ROLES-assigned-to-all/m-p/112825#M3557</link>
      <description>&lt;P&gt;I am looking to run a search that provides a complete list of user roles assigned to each and every index so I can do an audit of who has access to which indexes. I know i can do this manually by reviewing every index but I am looking for a faster way to do it.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 17:55:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-Search-that-returns-ALL-the-user-ROLES-assigned-to-all/m-p/112825#M3557</guid>
      <dc:creator>rdelmark</dc:creator>
      <dc:date>2014-01-14T17:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search that returns ALL the user ROLES assigned to all the specific INDEXes</title>
      <link>https://community.splunk.com/t5/Security/Splunk-Search-that-returns-ALL-the-user-ROLES-assigned-to-all/m-p/112826#M3558</link>
      <description>&lt;P&gt;Give this a try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/authorization/roles | table title srchIndexesAllowed
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Jan 2014 18:31:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-Search-that-returns-ALL-the-user-ROLES-assigned-to-all/m-p/112826#M3558</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-01-14T18:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search that returns ALL the user ROLES assigned to all the specific INDEXes</title>
      <link>https://community.splunk.com/t5/Security/Splunk-Search-that-returns-ALL-the-user-ROLES-assigned-to-all/m-p/112827#M3559</link>
      <description>&lt;P&gt;This is great, thank-you it works very well.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 20:55:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-Search-that-returns-ALL-the-user-ROLES-assigned-to-all/m-p/112827#M3559</guid>
      <dc:creator>rdelmark</dc:creator>
      <dc:date>2014-01-14T20:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search that returns ALL the user ROLES assigned to all the specific INDEXes</title>
      <link>https://community.splunk.com/t5/Security/Splunk-Search-that-returns-ALL-the-user-ROLES-assigned-to-all/m-p/112828#M3560</link>
      <description>&lt;P&gt;On the similar line, but more detailed Index-Role-User mapping&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/data/indexes | table title | rename title as index_name | eval joinfield=if(substr(index_name,1,1)="_","I","NI") 
| join type=left max=0 joinfield [| rest /services/authorization/roles | table title srchIndexesAllowed | rename title as Role 
| mvexpand srchIndexesAllowed | dedup Role, srchIndexesAllowed| eval joinfield=if(substr(srchIndexesAllowed,1,1)="_","I","NI") 
| rex field=srchIndexesAllowed  mode=sed "s/[*]/%/g"] | where like(index_name,srchIndexesAllowed) | table index_name, Role
| join type=left max=0 Role [| rest /services/authentication/users | table title , roles | mvexpand roles | rename title as User, roles as Role]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample output:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index_name          Role    User
---------------------------------
_audit          admin   admin
_blocksignature     admin   admin
_internal           admin   admin
_thefishbucket  admin   admin
history             admin   admin
history             power    
history             user     
main            admin   admin
main            dummy   dummy 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Blank User column means not user have been assigned that role.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 21:07:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-Search-that-returns-ALL-the-user-ROLES-assigned-to-all/m-p/112828#M3560</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-01-14T21:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search that returns ALL the user ROLES assigned to all the specific INDEXes</title>
      <link>https://community.splunk.com/t5/Security/Splunk-Search-that-returns-ALL-the-user-ROLES-assigned-to-all/m-p/112829#M3561</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 07:29:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-Search-that-returns-ALL-the-user-ROLES-assigned-to-all/m-p/112829#M3561</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2016-11-01T07:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search that returns ALL the user ROLES assigned to all the specific INDEXes</title>
      <link>https://community.splunk.com/t5/Security/Splunk-Search-that-returns-ALL-the-user-ROLES-assigned-to-all/m-p/112830#M3562</link>
      <description>&lt;P&gt;This was very useful&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 15:09:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-Search-that-returns-ALL-the-user-ROLES-assigned-to-all/m-p/112830#M3562</guid>
      <dc:creator>kalraj3</dc:creator>
      <dc:date>2016-12-14T15:09:28Z</dc:date>
    </item>
  </channel>
</rss>

