<?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 for hiding a sheet from users in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Security-rule-for-hiding-a-sheet-from-users/m-p/2104560#M90233</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/216"&gt;@ali_hijazi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;sure. Sorry you stated that in your first post. Excuse!&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2023 13:45:40 GMT</pubDate>
    <dc:creator>JHuis</dc:creator>
    <dc:date>2023-08-10T13:45:40Z</dc:date>
    <item>
      <title>Security rule for hiding a sheet from users</title>
      <link>https://community.qlik.com/t5/App-Development/Security-rule-for-hiding-a-sheet-from-users/m-p/2104467#M90217</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;Security rules in Qlik sense are complete hassle&lt;BR /&gt;majority of replies are like :&lt;BR /&gt;... modify existing rules...&lt;BR /&gt;... try this and that&lt;BR /&gt;... keep in mind not to modify existing rules&lt;BR /&gt;... and so on...&lt;BR /&gt;&lt;BR /&gt;ok now I have a sheet in an app that I want to hide; I don't want to put 0 in the Show if condition because if a user has the privilege to edit then this sheet would be visible to him&lt;BR /&gt;&lt;BR /&gt;can someone help on how to hide this sheet using a security rule?&lt;BR /&gt;I tried creating a security rule from App.Object* template and added that Sheet.Name (resource.name != desired_sheet_i_want_to_hide)&lt;BR /&gt;but all in vain&lt;BR /&gt;why qlik is complicating such straight forward things? no idea&lt;BR /&gt;kindly advise&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 10:49:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Security-rule-for-hiding-a-sheet-from-users/m-p/2104467#M90217</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2023-08-10T10:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Security rule for hiding a sheet from users</title>
      <link>https://community.qlik.com/t5/App-Development/Security-rule-for-hiding-a-sheet-from-users/m-p/2104519#M90220</link>
      <description>&lt;P&gt;I know this is not really something they would like but:&lt;/P&gt;
&lt;P&gt;sheetConditions:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/video/1DWu2wd8fhk" target="_blank"&gt;https://help.qlik.com/en-US/video/1DWu2wd8fhk&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;also with is&amp;nbsp;&lt;SPAN&gt;OSUser() funtion.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;i think you could get the result what you want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 12:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Security-rule-for-hiding-a-sheet-from-users/m-p/2104519#M90220</guid>
      <dc:creator>JHuis</dc:creator>
      <dc:date>2023-08-10T12:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Security rule for hiding a sheet from users</title>
      <link>https://community.qlik.com/t5/App-Development/Security-rule-for-hiding-a-sheet-from-users/m-p/2104536#M90228</link>
      <description>&lt;P&gt;the thing is that if a user created his own sheet, and clicks the edit sheet button then he can see the hidden sheets and duplicate them&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 13:07:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Security-rule-for-hiding-a-sheet-from-users/m-p/2104536#M90228</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2023-08-10T13:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Security rule for hiding a sheet from users</title>
      <link>https://community.qlik.com/t5/App-Development/Security-rule-for-hiding-a-sheet-from-users/m-p/2104560#M90233</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/216"&gt;@ali_hijazi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;sure. Sorry you stated that in your first post. Excuse!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 13:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Security-rule-for-hiding-a-sheet-from-users/m-p/2104560#M90233</guid>
      <dc:creator>JHuis</dc:creator>
      <dc:date>2023-08-10T13:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Security rule for hiding a sheet from users</title>
      <link>https://community.qlik.com/t5/App-Development/Security-rule-for-hiding-a-sheet-from-users/m-p/2104568#M90235</link>
      <description>&lt;P&gt;no worries &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 13:51:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Security-rule-for-hiding-a-sheet-from-users/m-p/2104568#M90235</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2023-08-10T13:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Security rule for hiding a sheet from users</title>
      <link>https://community.qlik.com/t5/App-Development/Security-rule-for-hiding-a-sheet-from-users/m-p/2104571#M90236</link>
      <description>&lt;P&gt;You have indeed received responses from several people attempting to help you achieve what you want, and you can use those to solve your problem, albeit in a manner that is more complex than you'd like. If you'd like to suggest a change to how security rules work, you can use the Ideation section of this site.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 14:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Security-rule-for-hiding-a-sheet-from-users/m-p/2104571#M90236</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2023-08-10T14:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Security rule for hiding a sheet from users</title>
      <link>https://community.qlik.com/t5/App-Development/Security-rule-for-hiding-a-sheet-from-users/m-p/2104612#M90242</link>
      <description>&lt;P&gt;Hi, note that there is a security rule called Stream that gives access to App*, and that includes App&amp;nbsp; and App.Object, so you'll need to disable this rule to avoid the permissions this rule gives.&lt;/P&gt;
&lt;P&gt;In the environments I need to do something similar I usually disable this rule, and create a new one making a manual copy of this rule, then I add my needed modifications.&lt;/P&gt;
&lt;P&gt;In example you can create a custom property called AppType, with a HiddenSheets value and apply this value to the app with the sheets you want to hide and the users that can see this sheets.&lt;/P&gt;
&lt;P&gt;This will be easier if app.objects accepted custom properties but it only goes until the app, so the option to select hidden sheets if with a prefix or sufix to the sheet names.&lt;/P&gt;
&lt;P&gt;So, if the original rule is:&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-mc-conditions="Targets.NotToTranslate"&gt;(resource.resourcetype = "App" and resource.stream.HasPrivilege("read")) 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;/P&gt;
&lt;P&gt;The rule with the modifications can be:&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-mc-conditions="Targets.NotToTranslate"&gt;(resource.resourcetype = "App" and resource.stream.HasPrivilege("read")) or ((resource.resourcetype = "App.Object" and resource.published ="true" and resource.objectType != "app_appscript" and resource.objectType != "loadmodel" &lt;STRONG&gt;and (resource.app.@AppType!="HiddenSheets" or !(resource.name like "_*") or &lt;A href="mailto:user.@AppType=&amp;quot;HiddenSheets&amp;quot;" target="_blank"&gt;user.@AppType="HiddenSheets"&lt;/A&gt;)&lt;/STRONG&gt;) and resource.app.stream.HasPrivilege("read"))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Here the initial _ in the shhet names specify wich ones should be hidden to user without the HiddenSheets property.&lt;/P&gt;
&lt;P&gt;The bold part gives access to all app ojects of apps without the HiddenSheets property, and from the apps with this property, to the app objects without name starting by _. Only the users with the property value HiddenSheets can see all the sheets.&lt;/P&gt;
&lt;P&gt;I haven't tested so maybe I forgot something but I make this work on production environments.&lt;/P&gt;
&lt;P&gt;As you imagine, hide diffrent sheets for different users can be done but with a very complex security rule that may affect performance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 15:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Security-rule-for-hiding-a-sheet-from-users/m-p/2104612#M90242</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2023-08-10T15:35:39Z</dc:date>
    </item>
  </channel>
</rss>

