<?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 App Security Rules in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/App-Security-Rules/m-p/1557049#M12989</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm not sure if this belongs in this location but I'm hoping someone can help with some security logic.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Here's what I'm trying to achieve:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I have set up a new stream ("Stream_Development") for developing apps along with its own property for access (@DevStream).&lt;/P&gt;&lt;P&gt;I have also set up a custom app property for &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/64178"&gt;@Testing&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;I can grant access to users using the @DevStream property, but when the &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/64178"&gt;@Testing&lt;/a&gt; property is set to false on an individual app, the app shouldn't show.&lt;/P&gt;&lt;P&gt;I also have a @Developer property for users who should be able to see all apps in the stream regardless of the state of the &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/64178"&gt;@Testing&lt;/a&gt; property.&lt;/P&gt;&lt;P&gt;When we want to open that app up to other users for testing, setting the &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/64178"&gt;@Testing&lt;/a&gt; property should then show it to other users with access to the stream.&lt;/P&gt;&lt;P&gt;It seems like a simple enough concept and I've managed to get the logic working - however in doing so I broke everything else and all users were unable to see any apps but their own (in every stream).&lt;/P&gt;&lt;P&gt;&lt;U&gt;Here's what I've got so far:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I've been manipulating the Stream security rule as that's the only one that I can see that impacts visibility of all apps - but there's clearly something wrong with my logic. The changes I have made are below:&lt;/P&gt;&lt;PRE&gt;app.stream.name != "Stream_Development" and (
	(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"))
)
or 
app.stream.name ="Stream_Development" and (resource.@Testing="True" or user.@Developer="True")&lt;/PRE&gt;&lt;P&gt;The indented block is the original rule with my additions surrounding it.&lt;/P&gt;&lt;P&gt;Am I going about this the right way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&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;</description>
    <pubDate>Sat, 16 Nov 2024 06:19:37 GMT</pubDate>
    <dc:creator>abrown229</dc:creator>
    <dc:date>2024-11-16T06:19:37Z</dc:date>
    <item>
      <title>App Security Rules</title>
      <link>https://community.qlik.com/t5/Management-Governance/App-Security-Rules/m-p/1557049#M12989</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm not sure if this belongs in this location but I'm hoping someone can help with some security logic.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Here's what I'm trying to achieve:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I have set up a new stream ("Stream_Development") for developing apps along with its own property for access (@DevStream).&lt;/P&gt;&lt;P&gt;I have also set up a custom app property for &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/64178"&gt;@Testing&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;I can grant access to users using the @DevStream property, but when the &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/64178"&gt;@Testing&lt;/a&gt; property is set to false on an individual app, the app shouldn't show.&lt;/P&gt;&lt;P&gt;I also have a @Developer property for users who should be able to see all apps in the stream regardless of the state of the &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/64178"&gt;@Testing&lt;/a&gt; property.&lt;/P&gt;&lt;P&gt;When we want to open that app up to other users for testing, setting the &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/64178"&gt;@Testing&lt;/a&gt; property should then show it to other users with access to the stream.&lt;/P&gt;&lt;P&gt;It seems like a simple enough concept and I've managed to get the logic working - however in doing so I broke everything else and all users were unable to see any apps but their own (in every stream).&lt;/P&gt;&lt;P&gt;&lt;U&gt;Here's what I've got so far:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I've been manipulating the Stream security rule as that's the only one that I can see that impacts visibility of all apps - but there's clearly something wrong with my logic. The changes I have made are below:&lt;/P&gt;&lt;PRE&gt;app.stream.name != "Stream_Development" and (
	(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"))
)
or 
app.stream.name ="Stream_Development" and (resource.@Testing="True" or user.@Developer="True")&lt;/PRE&gt;&lt;P&gt;The indented block is the original rule with my additions surrounding it.&lt;/P&gt;&lt;P&gt;Am I going about this the right way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&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;</description>
      <pubDate>Sat, 16 Nov 2024 06:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/App-Security-Rules/m-p/1557049#M12989</guid>
      <dc:creator>abrown229</dc:creator>
      <dc:date>2024-11-16T06:19:37Z</dc:date>
    </item>
  </channel>
</rss>

