<?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: Security rule to check if session attribute exists in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/Security-rule-to-check-if-session-attribute-exists/m-p/1543548#M12527</link>
    <description>&lt;P&gt;Hi there TKO&lt;/P&gt;&lt;P&gt;I&amp;nbsp;ended up going with&amp;nbsp;&lt;STRONG&gt;user.environment.Attribute1.empty()&lt;/STRONG&gt;. The thing is that I also need to evaluate the that session attribute for users from my Active Directory .&amp;nbsp;If they launch to the Hub using an application to authenticate then I only want them to see data connections which have got a custom property matching their session attribute, otherwise I want them to see all data connections if they use AD to authenticate when opening the Hub.&lt;/P&gt;&lt;P&gt;Thanks for the reply though!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mauritz&lt;/P&gt;</description>
    <pubDate>Wed, 13 Feb 2019 10:58:41 GMT</pubDate>
    <dc:creator>Mauritz_SA</dc:creator>
    <dc:date>2019-02-13T10:58:41Z</dc:date>
    <item>
      <title>Security rule to check if session attribute exists</title>
      <link>https://community.qlik.com/t5/Management-Governance/Security-rule-to-check-if-session-attribute-exists/m-p/1509589#M11878</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question regarding security rule syntax. I &lt;STRONG&gt;sometimes&lt;/STRONG&gt; pass through a session attribute upon authentication from an application (let's call it Attribute1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have set up a Data Connection rule which checks whether the user launched to the Qlik Sense Hub from an application in which case I only want him/her to be able to read data connections with a Custom Property which match their Attribute1 session attribute:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Qlik Security Rule 1.PNG" style="width: 615px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/634i16A34C01F028F431/image-size/large?v=v2&amp;amp;px=999" role="button" title="Qlik Security Rule 1.PNG" alt="Qlik Security Rule 1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like to know how I can create a rule to see if a user does not have an Attribute1 session attribute? For example, if the user authenticates using Active Directory (only some users will be able to do this) then I want to be able to have a rule such as the one below (&lt;FONT color="#FF0000"&gt;which does not work&lt;/FONT&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Qlik Security Rule 2.PNG" style="width: 622px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/635i03064753186ACFBD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Qlik Security Rule 2.PNG" alt="Qlik Security Rule 2.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried variations such as&lt;FONT color="#FF0000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#FF0000"&gt;user.environment.Attribute1 = ""&lt;/FONT&gt;&amp;nbsp;and&amp;nbsp;&lt;FONT color="#FF0000"&gt;user.environment.Attribute1.IsEmpty()&lt;/FONT&gt;, but they do not work since the Attribute1 session variable does not exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My example above is simplified, but I hope that it shows my requirement. Any help will be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mauritz&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:15:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Security-rule-to-check-if-session-attribute-exists/m-p/1509589#M11878</guid>
      <dc:creator>Mauritz_SA</dc:creator>
      <dc:date>2024-11-16T07:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Security rule to check if session attribute exists</title>
      <link>https://community.qlik.com/t5/Management-Governance/Security-rule-to-check-if-session-attribute-exists/m-p/1543498#M12525</link>
      <description>Why don't you simply use the user directory in your rule? This allows you to decide access based on the user authentication.&lt;BR /&gt;&lt;BR /&gt;((user.userDirectory="MyDirectoryName"))</description>
      <pubDate>Wed, 13 Feb 2019 09:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Security-rule-to-check-if-session-attribute-exists/m-p/1543498#M12525</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2019-02-13T09:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Security rule to check if session attribute exists</title>
      <link>https://community.qlik.com/t5/Management-Governance/Security-rule-to-check-if-session-attribute-exists/m-p/1543548#M12527</link>
      <description>&lt;P&gt;Hi there TKO&lt;/P&gt;&lt;P&gt;I&amp;nbsp;ended up going with&amp;nbsp;&lt;STRONG&gt;user.environment.Attribute1.empty()&lt;/STRONG&gt;. The thing is that I also need to evaluate the that session attribute for users from my Active Directory .&amp;nbsp;If they launch to the Hub using an application to authenticate then I only want them to see data connections which have got a custom property matching their session attribute, otherwise I want them to see all data connections if they use AD to authenticate when opening the Hub.&lt;/P&gt;&lt;P&gt;Thanks for the reply though!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mauritz&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 10:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Security-rule-to-check-if-session-attribute-exists/m-p/1543548#M12527</guid>
      <dc:creator>Mauritz_SA</dc:creator>
      <dc:date>2019-02-13T10:58:41Z</dc:date>
    </item>
  </channel>
</rss>

