<?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 Restricting search using lookup table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Restricting-search-using-lookup-table/m-p/63911#M15799</link>
    <description>&lt;P&gt;I have a scenario where I need to restrict 100+ users within an index to their respective departments. I created an app with views where the dropdown field is populated using a lookup table for departments and this works great based on the logged in user/role. However the user is still able to access the entire index using the search app available globally.&lt;/P&gt;

&lt;P&gt;Is there a way to use 'Restrict search terms' field within the role to specify a lookup table and restrict the user to specific departments so the implied search string would inherit something like :&lt;/P&gt;

&lt;P&gt;department="1234" OR department="4567"  (where the value is a lookup field.)&lt;/P&gt;

&lt;P&gt;I know it can be achieved by creating several roles and assigning them individually, however I am trying to automate this so that a single role caters for all the users.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Mar 2013 06:11:16 GMT</pubDate>
    <dc:creator>nandm</dc:creator>
    <dc:date>2013-03-16T06:11:16Z</dc:date>
    <item>
      <title>Restricting search using lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Restricting-search-using-lookup-table/m-p/63911#M15799</link>
      <description>&lt;P&gt;I have a scenario where I need to restrict 100+ users within an index to their respective departments. I created an app with views where the dropdown field is populated using a lookup table for departments and this works great based on the logged in user/role. However the user is still able to access the entire index using the search app available globally.&lt;/P&gt;

&lt;P&gt;Is there a way to use 'Restrict search terms' field within the role to specify a lookup table and restrict the user to specific departments so the implied search string would inherit something like :&lt;/P&gt;

&lt;P&gt;department="1234" OR department="4567"  (where the value is a lookup field.)&lt;/P&gt;

&lt;P&gt;I know it can be achieved by creating several roles and assigning them individually, however I am trying to automate this so that a single role caters for all the users.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2013 06:11:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Restricting-search-using-lookup-table/m-p/63911#M15799</guid>
      <dc:creator>nandm</dc:creator>
      <dc:date>2013-03-16T06:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting search using lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Restricting-search-using-lookup-table/m-p/63912#M15800</link>
      <description>&lt;P&gt;My suggestion would be to write a script against the SDK to do this. Check out the docs on access and roles &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTaccess"&gt;http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTaccess&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2013 10:59:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Restricting-search-using-lookup-table/m-p/63912#M15800</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2013-03-18T10:59:20Z</dc:date>
    </item>
  </channel>
</rss>

