<?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 remove search button below the panel and search capabilities as well in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-search-button-below-the-panel-and-search/m-p/659135#M54274</link>
    <description>&lt;P&gt;Any suggestions how to do this in Studio using json? Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Sep 2023 19:52:23 GMT</pubDate>
    <dc:creator>dionrivera</dc:creator>
    <dc:date>2023-09-29T19:52:23Z</dc:date>
    <item>
      <title>How to remove search button below the panel and search capabilities as well</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-search-button-below-the-panel-and-search/m-p/514504#M34371</link>
      <description>&lt;P&gt;I have couple of related things to be addressed.&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I want to remove the search button from the panels so that users from specific roles can only see the dashboards.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;While the 'user' cannot see the search button, I want admins to see that option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So putting&amp;nbsp;&amp;lt;option name="link.openSearch.visible"&amp;gt;false&amp;lt;/option&amp;gt; in the XML is ruled out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I do not want users to have the search capabilities as well. If I am doing that, the searches in dashboards are also not working. Can I make them see the dashboards but take away the capabilities of running the ad-hoc searches?&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 17:18:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-search-button-below-the-panel-and-search/m-p/514504#M34371</guid>
      <dc:creator>varad_joshi</dc:creator>
      <dc:date>2020-08-17T17:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove search button below the panel and search capabilities as well</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-search-button-below-the-panel-and-search/m-p/516940#M34623</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/120233"&gt;@varad_joshi&lt;/a&gt;&amp;nbsp;you can refer to one of my older answers to use logged in user role in Splunk Dashboard and enable/disable required inputs for non-admins:&lt;A href="https://community.splunk.com/t5/Security/Can-i-restrict-permissions-for-the-text-box-drilldown-inputs/td-p/338529" target="_blank"&gt;https://community.splunk.com/t5/Security/Can-i-restrict-permissions-for-the-text-box-drilldown-inputs/td-p/338529&lt;/A&gt;. In your case you would need to hide the Open in Search link.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  &amp;lt;init&amp;gt;
    &amp;lt;set token="searchShowHideCSS"&amp;gt;visibility: hidden !important;&amp;lt;/set&amp;gt;
  &amp;lt;/init&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;progress&amp;gt;
      &amp;lt;!-- No Results Found - Hence admin role is attached with logged in user enable Open in Search Link--&amp;gt;
      &amp;lt;condition match="$job.resultCount$==0"&amp;gt;
        &amp;lt;set token="searchShowHideCSS"&amp;gt;&amp;lt;/set&amp;gt;
      &amp;lt;/condition&amp;gt;
      &amp;lt;!-- Hence admin role is not attached with logged in user --&amp;gt;
      &amp;lt;condition&amp;gt;
        &amp;lt;set token="searchShowHideCSS"&amp;gt;visibility: hidden !important;&amp;lt;/set&amp;gt;
      &amp;lt;/condition&amp;gt;
    &amp;lt;/progress&amp;gt;
    &amp;lt;query&amp;gt;| rest splunk_server=local /services/authentication/current-context 
| fields username roles 
| eval roles=mvjoin(roles,",") 
| search roles!="admin"&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;$earliest$&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;$latest$&amp;lt;/latest&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;row depends="$alwaysHideCSSPanel$"&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          a[data-original-title="Open in Search"]{
            $searchShowHideCSS$
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;For the second question you may have to provide more details. If you can provide users with results from a predefined Report or Scheduled search you can use the loadjob command, hence abstracting the underlying search. Users can have access to the report but not to search.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Aug 2020 21:30:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-search-button-below-the-panel-and-search/m-p/516940#M34623</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-08-30T21:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove search button below the panel and search capabilities as well</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-search-button-below-the-panel-and-search/m-p/659135#M54274</link>
      <description>&lt;P&gt;Any suggestions how to do this in Studio using json? Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 19:52:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-search-button-below-the-panel-and-search/m-p/659135#M54274</guid>
      <dc:creator>dionrivera</dc:creator>
      <dc:date>2023-09-29T19:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove search button below the panel and search capabilities as well</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-search-button-below-the-panel-and-search/m-p/659142#M54275</link>
      <description>&lt;P&gt;This thread is over three years old, is not related to Dashboard Studio, and involves a user who is no longer on the forum.&amp;nbsp; Please post a new question.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 20:14:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-search-button-below-the-panel-and-search/m-p/659142#M54275</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-09-29T20:14:43Z</dc:date>
    </item>
  </channel>
</rss>

