<?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: Restrict metadata by user role in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Restrict-metadata-by-user-role/m-p/17114#M521</link>
    <description>&lt;P&gt;Actually when i tried it with just the index it did not work completely, ie. it did show me the rest of the info which is in the main index. - hence the removing of the user role privileges and creating the role with only the given capabilities.&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jul 2010 01:43:59 GMT</pubDate>
    <dc:creator>Genti</dc:creator>
    <dc:date>2010-07-10T01:43:59Z</dc:date>
    <item>
      <title>Restrict metadata by user role</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Restrict-metadata-by-user-role/m-p/17111#M518</link>
      <description>&lt;P&gt;I'm trying to restrict the metadata that is available to users of a particular role.  The main reason I'm doing this is because I don't want users to be able to see tons of information about different hosts/sources/sourcetypes that they cannot access while they are in the dashboard, but I do want them to be able to see the information about the hosts/sources/sourcetypes that are available to them.  Is there a way to restrict the metadata to just what the user is allowed to access?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jul 2010 00:09:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Restrict-metadata-by-user-role/m-p/17111#M518</guid>
      <dc:creator>npt05001</dc:creator>
      <dc:date>2010-07-10T00:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict metadata by user role</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Restrict-metadata-by-user-role/m-p/17112#M519</link>
      <description>&lt;P&gt;Index wise, you should be able to restrict the metadata.   I'm not completely sure about your particular application and would like to see the specific role filters.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jul 2010 00:40:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Restrict-metadata-by-user-role/m-p/17112#M519</guid>
      <dc:creator>Simeon</dc:creator>
      <dc:date>2010-07-10T00:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict metadata by user role</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Restrict-metadata-by-user-role/m-p/17113#M520</link>
      <description>&lt;P&gt;As far as i know (and the little test that i just concluded) there is no way to tell the role what metadata to show and what not to show.&lt;BR /&gt;
However, i believe what you are trying to achieve can be done by the following:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Create a role that does not have access to the main index&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;This role will have only these capabilities:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;change_own_password&lt;/LI&gt;
&lt;LI&gt;get_metadata&lt;/LI&gt;
&lt;LI&gt;get_typeahead&lt;/LI&gt;
&lt;LI&gt;list_inputs&lt;/LI&gt;
&lt;LI&gt;request_remote_tok&lt;/LI&gt;
&lt;LI&gt;rest_apps_view&lt;/LI&gt;
&lt;LI&gt;rest_properties_get&lt;/LI&gt;
&lt;LI&gt;rest_properties_set&lt;/LI&gt;
&lt;LI&gt;search&lt;/LI&gt;
&lt;/UL&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;This role will not inherit any other capabilities from any other role (ie. remove the user from the selected roles list)&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;Create a user and assign it to this role&lt;/LI&gt;
&lt;LI&gt;Assign data that you want this role to see to the index that you specified for the role&lt;/LI&gt;
&lt;LI&gt;Logout from your admin user and login with the newly created user (belonging to the newly created role)&lt;/LI&gt;
&lt;LI&gt;Check to see if you see other metadata or if you only see the metadata that belong to this index.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Here is my setup:
Created an index called localping.&lt;BR /&gt;
used ping localhost &amp;gt; meta.test to get some sample logs.&lt;BR /&gt;
Created a new role called metadatatest and gave it the above capabilities and made localping the default index as well as the only index that this role can search&lt;BR /&gt;
Created a user called metauser with the metadatatest role.&lt;BR /&gt;
Logged in with this user and can only see info from the localping index.  &lt;/P&gt;

&lt;P&gt;Here is a sample screenshot:&lt;/P&gt;

&lt;P&gt;Sources (1) Source | Total Count | Last Updated (desc)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* /Users/gzaimi/meta.test | 1,283
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sourcetypes (1) Sourcetype | Total Count | Last Updated (desc)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* test-too_small | 1,283
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hosts (1) Host | Total Count | Last Updated (desc)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* localhost | 1,283
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you can see i can only see these instead of seeing a lot more data that i can usually see with the admin role.&lt;BR /&gt;
Hope this helped.
.gz&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jul 2010 01:03:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Restrict-metadata-by-user-role/m-p/17113#M520</guid>
      <dc:creator>Genti</dc:creator>
      <dc:date>2010-07-10T01:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict metadata by user role</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Restrict-metadata-by-user-role/m-p/17114#M521</link>
      <description>&lt;P&gt;Actually when i tried it with just the index it did not work completely, ie. it did show me the rest of the info which is in the main index. - hence the removing of the user role privileges and creating the role with only the given capabilities.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jul 2010 01:43:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Restrict-metadata-by-user-role/m-p/17114#M521</guid>
      <dc:creator>Genti</dc:creator>
      <dc:date>2010-07-10T01:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict metadata by user role</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Restrict-metadata-by-user-role/m-p/17115#M522</link>
      <description>&lt;P&gt;This is related and should generalize...&lt;/P&gt;

&lt;P&gt;I populate sideview pulldowns with a list of HPC clusters, each saved into an index with an hpc_ prefix.  The below forms the list of all such indexes, and then subsets it to only those the user's role allows them to search (determined by the role's allowed index list).&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| eventcount summarize=false index=hpc_* | where count&amp;gt;0 | map [search index=$index$ | head 1] maxsearches=20 | eval cluster=substr(index,5) | fields cluster&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Perhaps you could form lists of hosts/sources/sourcetypes via &lt;CODE&gt;|metadata&lt;/CODE&gt; and then subset via &lt;CODE&gt;map&lt;/CODE&gt; according to role search filters?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2013 18:46:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Restrict-metadata-by-user-role/m-p/17115#M522</guid>
      <dc:creator>jrstear</dc:creator>
      <dc:date>2013-03-04T18:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict metadata by user role</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Restrict-metadata-by-user-role/m-p/17116#M523</link>
      <description>&lt;P&gt;disclaimer: the above is slow with many indexes (no surprise), and splunk5's eventcount appears to only list those indexes permitted by the current role, so map is unnecessary.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 19:55:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Restrict-metadata-by-user-role/m-p/17116#M523</guid>
      <dc:creator>jrstear</dc:creator>
      <dc:date>2013-03-05T19:55:12Z</dc:date>
    </item>
  </channel>
</rss>

