<?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: Help in setting up token based on User Value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-in-setting-up-token-based-on-User-Value/m-p/541761#M153395</link>
    <description>&lt;P&gt;Have you tried without the surrounding preview elements?&lt;/P&gt;</description>
    <pubDate>Mon, 01 Mar 2021 14:16:21 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-03-01T14:16:21Z</dc:date>
    <item>
      <title>Help in setting up token based on User Value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-in-setting-up-token-based-on-User-Value/m-p/541743#M153385</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to display couple of Dashboard Panels only to a specific user. For that i am trying to get the username and set the token if its matches with a certain value.&lt;/P&gt;&lt;P&gt;But somehow if i use condition tag its not working and "have_access" token is not getting set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;search&amp;gt;
&amp;lt;query&amp;gt;| rest /services/authentication/current-context splunk_server=local  | eval access=if(username="kkan","True","False") | where access = True&amp;lt;/query&amp;gt;

&amp;lt;preview&amp;gt;
   &amp;lt;condition match=" 'job.resultCount' != 0"&amp;gt;
      &amp;lt;set token="have_access"&amp;gt;True&amp;lt;/set&amp;gt;
    &amp;lt;/condition&amp;gt;
&amp;lt;/preview&amp;gt;

        &amp;lt;/search&amp;gt;
   &amp;lt;/panel&amp;gt;
 &amp;lt;/row&amp;gt;

&amp;lt;row&amp;gt;
    &amp;lt;panel depends="$have_access$"&amp;gt;
..............&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone ,&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt;&amp;nbsp; please help.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 12:18:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-in-setting-up-token-based-on-User-Value/m-p/541743#M153385</guid>
      <dc:creator>shivamagrawa</dc:creator>
      <dc:date>2021-03-01T12:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help in setting up token based on User Value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-in-setting-up-token-based-on-User-Value/m-p/541761#M153395</link>
      <description>&lt;P&gt;Have you tried without the surrounding preview elements?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 14:16:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-in-setting-up-token-based-on-User-Value/m-p/541761#M153395</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-01T14:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help in setting up token based on User Value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-in-setting-up-token-based-on-User-Value/m-p/541786#M153413</link>
      <description>&lt;P&gt;Yes, i have removed the preview tag, but getting the error..&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Node &amp;lt;condition&amp;gt; is not allowed here&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 14:53:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-in-setting-up-token-based-on-User-Value/m-p/541786#M153413</guid>
      <dc:creator>shivamagrawa</dc:creator>
      <dc:date>2021-03-01T14:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help in setting up token based on User Value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-in-setting-up-token-based-on-User-Value/m-p/541796#M153417</link>
      <description>&lt;P&gt;OK try &amp;lt;done&amp;gt; instead of &amp;lt;preview&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Mar 2021 15:07:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-in-setting-up-token-based-on-User-Value/m-p/541796#M153417</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-01T15:07:38Z</dc:date>
    </item>
  </channel>
</rss>

