<?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 search for which user has access to what index? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-which-user-has-access-to-what-index/m-p/66356#M16485</link>
    <description>&lt;P&gt;Great thanks - i wonder why this isn't working though:&lt;/P&gt;

&lt;P&gt;|rest /services/authentication/users splunk_server=local &lt;BR /&gt;
|fields title roles realname&lt;BR /&gt;
| mvexpand roles&lt;BR /&gt;
| append [| rest /services/authorization/roles | table title srchIndexesAllowed&lt;BR /&gt;
| rename title as roles&lt;BR /&gt;
| mvexpand srchIndexesAllowed]&lt;BR /&gt;
| stats list(*) as * by title, realname&lt;/P&gt;

&lt;P&gt;Once i do the stats list i loos the srchIndexesAllowed column- any ideas?&lt;/P&gt;</description>
    <pubDate>Fri, 13 Apr 2018 07:19:52 GMT</pubDate>
    <dc:creator>claudio_manig</dc:creator>
    <dc:date>2018-04-13T07:19:52Z</dc:date>
    <item>
      <title>How to search for which user has access to what index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-which-user-has-access-to-what-index/m-p/66351#M16480</link>
      <description>&lt;P&gt;Does anyone know how to:&lt;/P&gt;

&lt;P&gt;1) search for which user has what access to the index?&lt;BR /&gt;
2) who has accessed to what index within like the last 24 hours?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2013 22:37:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-which-user-has-access-to-what-index/m-p/66351#M16480</guid>
      <dc:creator>splunkIT</dc:creator>
      <dc:date>2013-06-17T22:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for which user has access to what index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-which-user-has-access-to-what-index/m-p/66352#M16481</link>
      <description>&lt;P&gt;1) The following search will return a list of all known users as well as a semicolon-separated list of the indexes they have access to:&lt;BR /&gt;&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
| rest /services/authentication/users&lt;BR /&gt;
| rename title AS username roles AS role&lt;BR /&gt;
| mvexpand role&lt;BR /&gt;
| fields realname username role&lt;BR /&gt;
| join type=outer role [&lt;BR /&gt;
  rest /services/authorization/roles&lt;BR /&gt;
  | rename title AS role | eval indexes=mvjoin(srchIndexesAllowed," ; ")&lt;BR /&gt;
  | fields role indexes]&lt;BR /&gt;
| table realname username role indexes&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;A few caveats:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;You need to be admin to run this search&lt;/LI&gt;
&lt;LI&gt;Wildcards used to define list of indexes will not be expanded. "*" means "all non-internal indexes", "_*" means "all internal indexes".&lt;/LI&gt;
&lt;LI&gt;If you expect to return more than 1,000 users from your LDAP/AD groups, you might want to read &lt;A href="http://splunk-base.splunk.com/answers/76474/how-to-load-more-than-1000-records-from-ldap"&gt;this Splunk Answer&lt;/A&gt;.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;2) This is a rather difficult mapping to establish as search strings are recorded without an expanded list of accessed indexes in the _audit events.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2013 22:46:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-which-user-has-access-to-what-index/m-p/66352#M16481</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2013-06-17T22:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for which user has access to what index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-which-user-has-access-to-what-index/m-p/66353#M16482</link>
      <description>&lt;P&gt;I have the same question. I would be interested to know if the past two years has brought around a way to improve this answer? &lt;/P&gt;

&lt;P&gt;A way to get the same information without using a rest call that only the admin can do.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2015 11:28:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-which-user-has-access-to-what-index/m-p/66353#M16482</guid>
      <dc:creator>lassel</dc:creator>
      <dc:date>2015-05-26T11:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for which user has access to what index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-which-user-has-access-to-what-index/m-p/66354#M16483</link>
      <description>&lt;P&gt;And perhaps a way to expand the wildcards in indexes.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2015 11:36:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-which-user-has-access-to-what-index/m-p/66354#M16483</guid>
      <dc:creator>lassel</dc:creator>
      <dc:date>2015-05-26T11:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for which user has access to what index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-which-user-has-access-to-what-index/m-p/66355#M16484</link>
      <description>&lt;P&gt;Why not put the results in a csv? &lt;BR /&gt;
Scheduled search could take care of this. The csv access can then be set to whatever you want.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 15:35:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-which-user-has-access-to-what-index/m-p/66355#M16484</guid>
      <dc:creator>JohanDB</dc:creator>
      <dc:date>2016-07-29T15:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for which user has access to what index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-which-user-has-access-to-what-index/m-p/66356#M16485</link>
      <description>&lt;P&gt;Great thanks - i wonder why this isn't working though:&lt;/P&gt;

&lt;P&gt;|rest /services/authentication/users splunk_server=local &lt;BR /&gt;
|fields title roles realname&lt;BR /&gt;
| mvexpand roles&lt;BR /&gt;
| append [| rest /services/authorization/roles | table title srchIndexesAllowed&lt;BR /&gt;
| rename title as roles&lt;BR /&gt;
| mvexpand srchIndexesAllowed]&lt;BR /&gt;
| stats list(*) as * by title, realname&lt;/P&gt;

&lt;P&gt;Once i do the stats list i loos the srchIndexesAllowed column- any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 07:19:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-which-user-has-access-to-what-index/m-p/66356#M16485</guid>
      <dc:creator>claudio_manig</dc:creator>
      <dc:date>2018-04-13T07:19:52Z</dc:date>
    </item>
  </channel>
</rss>

