<?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: Is there a way to set up a dynamic dashboard refresh time based on the role logged in? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-set-up-a-dynamic-dashboard-refresh-time-based/m-p/159816#M9851</link>
    <description>&lt;P&gt;I don't think you can do that in SimpleXML, but I am not sure.&lt;BR /&gt;
If you are on V6.x, you can convert your dashboard to HTML and probably implement this in JavaScript. You can create a hidden panel which runs&lt;BR /&gt;
    | rest /services/authentication/current-context/context | fields username roles&lt;BR /&gt;
to get the current user name and the roles that user is part of (can be multiple) and then set the refresh property.&lt;/P&gt;

&lt;P&gt;Note: I have not tested whether dynamically setting the refresh property will actually work, or whether the value is only read once when the dashboard loads.&lt;BR /&gt;
Easy enough to try.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Feb 2015 20:16:55 GMT</pubDate>
    <dc:creator>s2_splunk</dc:creator>
    <dc:date>2015-02-25T20:16:55Z</dc:date>
    <item>
      <title>Is there a way to set up a dynamic dashboard refresh time based on the role logged in?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-set-up-a-dynamic-dashboard-refresh-time-based/m-p/159815#M9850</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Setup&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;multi-tenant setup accessing the same application dashboards&lt;/LI&gt;
&lt;LI&gt;Splunk V 6.2&lt;/LI&gt;
&lt;LI&gt;One business dashboards showing various KPIs with a dashboard refresh time setting to be 300 seconds  e.g. form refresh=300 is what is set when one does "Edit Source on dashboard and the views the XML &lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Need&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Based on the ROLE associated with login, set the dashboard refresh time to 5 minutes or 7 minutes or 15 minutes etc. meaning&lt;/P&gt;

&lt;P&gt;IF role=role1 then form refresh=300 &lt;BR /&gt;
elsif role=role2 then form refresh=420&lt;BR /&gt;
else form refresh=900&lt;BR /&gt;
end if;&lt;/P&gt;

&lt;P&gt;How do I achieve the above functionality?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2015 20:04:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-set-up-a-dynamic-dashboard-refresh-time-based/m-p/159815#M9850</guid>
      <dc:creator>ronak</dc:creator>
      <dc:date>2015-02-25T20:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to set up a dynamic dashboard refresh time based on the role logged in?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-set-up-a-dynamic-dashboard-refresh-time-based/m-p/159816#M9851</link>
      <description>&lt;P&gt;I don't think you can do that in SimpleXML, but I am not sure.&lt;BR /&gt;
If you are on V6.x, you can convert your dashboard to HTML and probably implement this in JavaScript. You can create a hidden panel which runs&lt;BR /&gt;
    | rest /services/authentication/current-context/context | fields username roles&lt;BR /&gt;
to get the current user name and the roles that user is part of (can be multiple) and then set the refresh property.&lt;/P&gt;

&lt;P&gt;Note: I have not tested whether dynamically setting the refresh property will actually work, or whether the value is only read once when the dashboard loads.&lt;BR /&gt;
Easy enough to try.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2015 20:16:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-set-up-a-dynamic-dashboard-refresh-time-based/m-p/159816#M9851</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2015-02-25T20:16:55Z</dc:date>
    </item>
  </channel>
</rss>

