<?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>article Security Rule issue: Custom Property security rule matches every user in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Security-Rule-issue-Custom-Property-security-rule-matches-every/ta-p/1713106</link>
    <description>&lt;P&gt;Access is granted to all users when attempting to use custom properties to manage stream access.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Stream access is set up using customer properties. Only users with the specific custom property should have access to the stream, but &lt;I&gt;all users&amp;nbsp;&lt;/I&gt;are granted access instead.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;The current security rule is set up as follows:&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;IMG src="https://qlik.my.salesforce.com/servlet/servlet.ImageServer?id=015D0000003sAa8&amp;amp;oid=00D20000000IGPX&amp;amp;lastMod=1491900681000" border="0" alt="User-added image" width="500" /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Where &lt;SPAN&gt;Project &lt;/SPAN&gt;is the name of the custom property.&lt;BR /&gt;&lt;BR /&gt;The condition translates into: &lt;SPAN&gt;((resource.@Project=user.@Project))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;Cause:&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;The original condition includes every user who has no custom property and therefore grants access to every stream which has no custom property.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;Resolution:&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;A requirement is needed to be added to the condition.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;((resource.@Project=user.@Project &lt;SPAN&gt;and resource.@Project!=""&lt;/SPAN&gt;))&lt;/PRE&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;A security rule will match every Stream to every user who has assigned the custom property 'Project'.&lt;BR /&gt;It is possible to match other resources through this rule for example apps or data connections or it is possible to include them to the existing rule.&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;This includes that the customer property can't be empty to start working.&lt;BR /&gt;&lt;BR /&gt;If you click on '&lt;STRONG&gt;Validate rule&lt;/STRONG&gt;' the rule should look like this:&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;IMG src="https://qlik.my.salesforce.com/servlet/servlet.ImageServer?id=015D0000003sAaD&amp;amp;oid=00D20000000IGPX&amp;amp;lastMod=1491900707000" border="0" alt="User-added image" width="500" /&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 11 Nov 2021 15:13:23 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2021-11-11T15:13:23Z</dc:date>
    <item>
      <title>Security Rule issue: Custom Property security rule matches every user</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Security-Rule-issue-Custom-Property-security-rule-matches-every/ta-p/1713106</link>
      <description>&lt;P&gt;Access is granted to all users when attempting to use custom properties to manage stream access.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Stream access is set up using customer properties. Only users with the specific custom property should have access to the stream, but &lt;I&gt;all users&amp;nbsp;&lt;/I&gt;are granted access instead.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;The current security rule is set up as follows:&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;IMG src="https://qlik.my.salesforce.com/servlet/servlet.ImageServer?id=015D0000003sAa8&amp;amp;oid=00D20000000IGPX&amp;amp;lastMod=1491900681000" border="0" alt="User-added image" width="500" /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Where &lt;SPAN&gt;Project &lt;/SPAN&gt;is the name of the custom property.&lt;BR /&gt;&lt;BR /&gt;The condition translates into: &lt;SPAN&gt;((resource.@Project=user.@Project))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;Cause:&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;The original condition includes every user who has no custom property and therefore grants access to every stream which has no custom property.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;Resolution:&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&lt;BR /&gt;A requirement is needed to be added to the condition.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;((resource.@Project=user.@Project &lt;SPAN&gt;and resource.@Project!=""&lt;/SPAN&gt;))&lt;/PRE&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;A security rule will match every Stream to every user who has assigned the custom property 'Project'.&lt;BR /&gt;It is possible to match other resources through this rule for example apps or data connections or it is possible to include them to the existing rule.&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;This includes that the customer property can't be empty to start working.&lt;BR /&gt;&lt;BR /&gt;If you click on '&lt;STRONG&gt;Validate rule&lt;/STRONG&gt;' the rule should look like this:&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;IMG src="https://qlik.my.salesforce.com/servlet/servlet.ImageServer?id=015D0000003sAaD&amp;amp;oid=00D20000000IGPX&amp;amp;lastMod=1491900707000" border="0" alt="User-added image" width="500" /&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Nov 2021 15:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Security-Rule-issue-Custom-Property-security-rule-matches-every/ta-p/1713106</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2021-11-11T15:13:23Z</dc:date>
    </item>
  </channel>
</rss>

