<?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: Exception Management - Problem with Security Rule Conditions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Exception-Management-Problem-with-Security-Rule-Conditions/m-p/2412185#M94720</link>
    <description>&lt;P&gt;Solution from &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58946"&gt;@Onyi_Nwabia-Robbins&lt;/a&gt; (fixed the issue):&lt;/P&gt;
&lt;DIV id="bodyDisplay_4" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;PRE&gt;For anyone who is still having issues with this, &lt;BR /&gt;please make sure the two security rules that manage &lt;BR /&gt;the app access are both for App* and NOT App_*.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This will ensure the user has access to all app &lt;BR /&gt;content and not just the app.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I hope this helps.&amp;nbsp;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Mon, 29 Jan 2024 21:06:35 GMT</pubDate>
    <dc:creator>RoyBatty</dc:creator>
    <dc:date>2024-01-29T21:06:35Z</dc:date>
    <item>
      <title>Exception Management - Problem with Security Rule Conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Exception-Management-Problem-with-Security-Rule-Conditions/m-p/2412023#M94706</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I followed this video about setting "Exception Management" (starting from: &lt;A href="https://youtu.be/yaBfW2RtxGA?si=QAdYpAQQjNcI5xd4&amp;amp;t=567" target="_self"&gt;9:27&lt;/A&gt;) :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoyBatty_0-1706537632315.gif" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158550iA766271A1D035270/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyBatty_0-1706537632315.gif" alt="RoyBatty_0-1706537632315.gif" /&gt;&lt;/span&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FyaBfW2RtxGA%3Fstart%3D567%26feature%3Doembed%26start%3D567&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DyaBfW2RtxGA&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FyaBfW2RtxGA%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="200" height="112" scrolling="no" title="Qlik Sense Stream Management Security Rules and Exception Management" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture;" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;After I followed (implemented) everything the author of the video did, it works (now I can hide applications that are "sensitive" and I can allow specific users to access them)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; but &lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;there is the following problem: All applications are empty, there are no sheets.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;The problem seems to be in &lt;EM&gt;Security Rule&lt;/EM&gt; / &lt;EM&gt;Conditions&lt;/EM&gt;:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;(resource.resourcetype = "App" and resource.stream.HasPrivilege("read") and resource.@AppLevelMgmt.empty()) or ((resource.resourcetype = "App.Object" and resource.published ="true" and resource.objectType != "app_appscript" and resource.objectType != "loadmodel") and resource.app.stream.HasPrivilege("read"))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Let me explain briefly what this is:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Qlik has a Security Rule called "Stream":&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoyBatty_0-1706310398667.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158477i88E1AB6E8EDC33FD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyBatty_0-1706310398667.png" alt="RoyBatty_0-1706310398667.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;We disabled it &lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;and created a new Security Rule that is almost identical, we just added this to the conditions: &lt;STRONG&gt;&lt;EM&gt;and resource.@AppLevelMgmt.empty()&lt;/EM&gt;&lt;/STRONG&gt;. So, these are "conditions" of that new security rule:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;(resource.resourcetype = "App" and resource.stream.HasPrivilege("read") &lt;FONT color="#003366"&gt;&lt;STRONG&gt;and resource.@AppLevelMgmt.empty()&lt;/STRONG&gt;&lt;/FONT&gt;) or ((resource.resourcetype = "App.Object" and resource.published ="true" and resource.objectType != "app_appscript" and resource.objectType != "loadmodel") and resource.app.stream.HasPrivilege("read"))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;However, as mentioned, now all applications are empty (no sheets). I noticed that around &lt;A href="https://youtu.be/yaBfW2RtxGA?si=7j9xOujYSsQNPkxU&amp;amp;t=729" target="_self"&gt;12:09&lt;/A&gt; in the video it says "&lt;EM&gt;Oops - Minor Mistake - Here is the correct rule:&lt;/EM&gt;" - but it's nowhere to be found, nor is there any link:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoyBatty_1-1706310881030.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158478iA9A9F13119430067/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyBatty_1-1706310881030.png" alt="RoyBatty_1-1706310881030.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 14:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Exception-Management-Problem-with-Security-Rule-Conditions/m-p/2412023#M94706</guid>
      <dc:creator>RoyBatty</dc:creator>
      <dc:date>2024-01-29T14:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Management - Problem with Security Rule Conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Exception-Management-Problem-with-Security-Rule-Conditions/m-p/2412185#M94720</link>
      <description>&lt;P&gt;Solution from &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58946"&gt;@Onyi_Nwabia-Robbins&lt;/a&gt; (fixed the issue):&lt;/P&gt;
&lt;DIV id="bodyDisplay_4" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;PRE&gt;For anyone who is still having issues with this, &lt;BR /&gt;please make sure the two security rules that manage &lt;BR /&gt;the app access are both for App* and NOT App_*.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This will ensure the user has access to all app &lt;BR /&gt;content and not just the app.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I hope this helps.&amp;nbsp;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Jan 2024 21:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Exception-Management-Problem-with-Security-Rule-Conditions/m-p/2412185#M94720</guid>
      <dc:creator>RoyBatty</dc:creator>
      <dc:date>2024-01-29T21:06:35Z</dc:date>
    </item>
  </channel>
</rss>

