<?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: Custom Security Rule for a data connection in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Custom-Security-Rule-for-a-data-connection/m-p/2014507#M83836</link>
    <description>&lt;P&gt;Hi, to your general question: No, if any rule gives the permission, the permission is granted, you can't add rules to deny permission, only to give, and if a rule is applied to DataConnection_* it will applied to all connections.&lt;/P&gt;
&lt;P&gt;You can edit the current rules to add a condition like and !(Resource.Name="DataConnectionName") so the rule returns false on that new data connection.&lt;/P&gt;
&lt;P&gt;If it's not something very special I would advide to use custom properties to comfigre rules so you can use a condition like&amp;nbsp;!(Resource.@CustomProperty="PropertyValue"), so if there more than one data connection with this behaviour it will be applied to all the data connection with this custom property value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Dec 2022 17:32:08 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2022-12-08T17:32:08Z</dc:date>
    <item>
      <title>Custom Security Rule for a data connection</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Security-Rule-for-a-data-connection/m-p/2014416#M83833</link>
      <description>&lt;P&gt;Hello; I'm working on Qlik Sense&lt;BR /&gt;we have several data connections defined&amp;nbsp;&lt;BR /&gt;also there are several security rules defined on data connections (general security rules i.e. not specific to a data connection) and these security rules have&amp;nbsp;DataConnection_* as resource filter.&lt;BR /&gt;&lt;BR /&gt;so now if I create a new data connection, these general security rules will be automatically applied to it&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-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/95760i965B1209972F6097/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;now for this new data connection I don't want these security rules above to be applied on it; and I want to create a new associated rule&lt;BR /&gt;I tried to delete one of the general security rules above inside the properties of the data connection , but this will delete it from security rules, not from the data connection itself&lt;BR /&gt;&lt;BR /&gt;is there a way to disable security rules on a specific data connection and make only the associated one applied?&lt;BR /&gt;&lt;BR /&gt;Kindly advise&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 15:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Security-Rule-for-a-data-connection/m-p/2014416#M83833</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2022-12-08T15:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Security Rule for a data connection</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Security-Rule-for-a-data-connection/m-p/2014507#M83836</link>
      <description>&lt;P&gt;Hi, to your general question: No, if any rule gives the permission, the permission is granted, you can't add rules to deny permission, only to give, and if a rule is applied to DataConnection_* it will applied to all connections.&lt;/P&gt;
&lt;P&gt;You can edit the current rules to add a condition like and !(Resource.Name="DataConnectionName") so the rule returns false on that new data connection.&lt;/P&gt;
&lt;P&gt;If it's not something very special I would advide to use custom properties to comfigre rules so you can use a condition like&amp;nbsp;!(Resource.@CustomProperty="PropertyValue"), so if there more than one data connection with this behaviour it will be applied to all the data connection with this custom property value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 17:32:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Security-Rule-for-a-data-connection/m-p/2014507#M83836</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-12-08T17:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Security Rule for a data connection</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Security-Rule-for-a-data-connection/m-p/2014644#M83841</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;thank you for your prompt reply&lt;BR /&gt;ok I'm creating a custom property named CanConsume with Values = Yes, No which I give it to users&lt;BR /&gt;so this data connection will be visible to users in the Hub if the user has the CanConsume = Yes (I'm giving example)&lt;BR /&gt;so the security rule (associated rule) will have as condition &lt;A href="mailto:user.@CanConsume" target="_blank"&gt;user.@CanConsume &lt;/A&gt;= "yes" and Action is READ&lt;/P&gt;
&lt;P&gt;so the above security rules (DataConnection_*) will grant access but the associated rule at the end will break this rule and give access only to users with CanConsume = "yes"&lt;BR /&gt;Am I right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 07:24:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Security-Rule-for-a-data-connection/m-p/2014644#M83841</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2022-12-09T07:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Security Rule for a data connection</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Security-Rule-for-a-data-connection/m-p/2014647#M83842</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/216"&gt;@ali_hijazi&lt;/a&gt;, no, as said above "&lt;SPAN&gt;if any rule gives the permission, the permission is granted", you need to edit or disable the previous rules to prevent them to give permissions you don't want to give.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or don't create another rule, just add &lt;STRONG&gt;and&amp;nbsp;&lt;A href="mailto:user.@CanConsume" target="_blank" rel="nofollow noopener noreferrer"&gt;user.@CanConsume&amp;nbsp;&lt;/A&gt;= "yes"&lt;/STRONG&gt; to the other rules to set this condition in all rules.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 07:37:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Security-Rule-for-a-data-connection/m-p/2014647#M83842</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-12-09T07:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Security Rule for a data connection</title>
      <link>https://community.qlik.com/t5/App-Development/Custom-Security-Rule-for-a-data-connection/m-p/2014761#M83849</link>
      <description>&lt;P&gt;so what is requested from me is not doable&lt;BR /&gt;I cannot treat a data connection separately; it has to follow rules defined before&amp;nbsp;&lt;BR /&gt;your suggestion is not feasible; I cannot disable previous rules nor can I add the CanConsume property to previous rules; because only this new data connection needs to be treated separately so that only a group of users can read it&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 12:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Custom-Security-Rule-for-a-data-connection/m-p/2014761#M83849</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2022-12-09T12:18:41Z</dc:date>
    </item>
  </channel>
</rss>

