<?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 creating ReloadTask with a schedule trigger in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Security-rule-for-creating-ReloadTask-with-a-schedule-trigger/m-p/1769622#M1313476</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25748"&gt;@vegard_bakke&lt;/a&gt;, first note that this is the Qlikview forum, not the Qlik sense forum, probably you can get more help there.&lt;/P&gt;&lt;P&gt;I'm not sure if you also need to give permissions to&amp;nbsp;&lt;SPAN&gt;QmcSection_CompositeEvent or CompositeEvent resources, I don't have now a qmc available to make test.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In case it can help, here is the help page with the available resources:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/June2019/Subsystems/ManagementConsole/Content/Sense_QMC/available-resource-filters.htm#anchor-5" target="_blank"&gt;https://help.qlik.com/en-US/sense/June2019/Subsystems/ManagementConsole/Content/Sense_QMC/available-resource-filters.htm#anchor-5&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I would try a rule with a named user to make tests until it works for that user, just to identify the needed permissions.&lt;/P&gt;</description>
    <pubDate>Sat, 19 Dec 2020 13:00:11 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2020-12-19T13:00:11Z</dc:date>
    <item>
      <title>Security rule for creating ReloadTask with a schedule trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Security-rule-for-creating-ReloadTask-with-a-schedule-trigger/m-p/1769525#M1313472</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have several departments that shall not see each other streams or apps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each department has a PowerUser that is allowed to run and create reload tasks for apps in their own stream.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We've got most working. The PowerUser can create the task, and for their own apps only.&amp;nbsp; BUT, when creating the Trigger, I get the error message: 'The operation failed due to insufficient privileges'.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QMC Create Task Trigger Failes.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45896i4E523A6F08A623A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="QMC Create Task Trigger Failes.png" alt="QMC Create Task Trigger Failes.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(Failing on: POST&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://qlik.company.com/dev/qrs/ReloadTask/update" target="_blank" rel="noopener"&gt;https&lt;/A&gt;&lt;/SPAN&gt;&lt;A href="https://qlik.company.com/dev/qrs/ReloadTask/update" target="_blank" rel="noopener"&gt;://qlik.company.com/dev/qrs/ReloadTask/update&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same POST works a litte earlier, but with a different content. 'schemaEvents' is empty, and 'task' has content.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QMC Create Task Trigger.png" style="width: 638px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/45895iBB04561E6FB3BDB5/image-dimensions/638x447?v=v2" width="638" height="447" role="button" title="QMC Create Task Trigger.png" alt="QMC Create Task Trigger.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The setup&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The developers get publish access to their stream, with a SAML attribute (similar to an&amp;nbsp; AD-group).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;One PowerUser get a Qlik Role 'PowerUser'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What have we done?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In addition to the QMC rule: Resouree: 'QMCSection_App, QMCSection_Task', Condition:&amp;nbsp;((user.roles="PowerUser"))&lt;BR /&gt;We created the security rule:&lt;/P&gt;&lt;P&gt;Resource:&amp;nbsp;ReloadTask_*,SchemaEvent*&lt;BR /&gt;Action: Create, Read, Update, Delete&lt;BR /&gt;Condition:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;   ((user.roles="PowerUser"
   and resource.app.stream.HasPrivilege("publish")
   ))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Context: QMC Only&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think maybe it is the&amp;nbsp; '&lt;/SPAN&gt;&lt;SPAN&gt;resource.app.stream.HasPrivilege("publish")' that breaks the rule, when we are saving the task trigger (the SchemaEvent ? ). Is seems to be working when saving the reload task itself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But what is inside the 'resource' object, when 'resource.resourcetype' is "SchemaEvent"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;A href="https://github.com/levi-turner/Qonnections2018-Rules#backend-rules" target="_blank" rel="noopener"&gt;GitHub - levi-turner/Qonnections2018-Rules&lt;/A&gt;&amp;nbsp;is great for existing examples.&amp;nbsp; But I cannot find any resources telling me the hierarchy within the 'resource'.&lt;/SPAN&gt;&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;&lt;P&gt;&lt;SPAN&gt;A very similar rule works very well for letting the PowerUser delete, import, export app, that the normal developers can only publish:&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Condition: ((user.roles="PowerUser"&amp;nbsp; and resource.stream.HasPrivilege("publish")))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Any nice xmas helpers out there...? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Security-rule-for-creating-ReloadTask-with-a-schedule-trigger/m-p/1769525#M1313472</guid>
      <dc:creator>vegard_bakke</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Security rule for creating ReloadTask with a schedule trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Security-rule-for-creating-ReloadTask-with-a-schedule-trigger/m-p/1769622#M1313476</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25748"&gt;@vegard_bakke&lt;/a&gt;, first note that this is the Qlikview forum, not the Qlik sense forum, probably you can get more help there.&lt;/P&gt;&lt;P&gt;I'm not sure if you also need to give permissions to&amp;nbsp;&lt;SPAN&gt;QmcSection_CompositeEvent or CompositeEvent resources, I don't have now a qmc available to make test.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In case it can help, here is the help page with the available resources:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/June2019/Subsystems/ManagementConsole/Content/Sense_QMC/available-resource-filters.htm#anchor-5" target="_blank"&gt;https://help.qlik.com/en-US/sense/June2019/Subsystems/ManagementConsole/Content/Sense_QMC/available-resource-filters.htm#anchor-5&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I would try a rule with a named user to make tests until it works for that user, just to identify the needed permissions.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Dec 2020 13:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Security-rule-for-creating-ReloadTask-with-a-schedule-trigger/m-p/1769622#M1313476</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-12-19T13:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Security rule for creating ReloadTask with a schedule trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Security-rule-for-creating-ReloadTask-with-a-schedule-trigger/m-p/1769765#M1313478</link>
      <description>&lt;P&gt;Arg. Sorry, I didn't see that the Security &amp;amp; Governance had the word 'QlikView' in front of it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have created a new post in&amp;nbsp; 'Qlik Sense Deployment &amp;amp; Management'.&amp;nbsp; Please, if someone would like to reply to this thread, post them in:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-Deployment-Management/Security-rule-for-creating-ReloadTask-with-a-schedule-trigger/m-p/1769757#M17085" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Qlik-Sense-Deployment-Management/Security-rule-for-creating-ReloadTask-with-a-schedule-trigger/m-p/1769757#M17085&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(PS&amp;nbsp;&lt;SPAN&gt;QmcSection_CompositeEvent&amp;nbsp; didn't seem do the trick. At least as the only change.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;EDIT: I see from&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense-developer/November2020/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Event-Triggers.htm" target="_self"&gt;Event triggers&lt;/A&gt;&amp;nbsp;that Qlik call "event triggers" for CompositeEvents, and "scheduled triggers" for SchemaEvents. In that case, QmcSection_CompositeEvent will be required for me as well. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 09:11:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Security-rule-for-creating-ReloadTask-with-a-schedule-trigger/m-p/1769765#M1313478</guid>
      <dc:creator>vegard_bakke</dc:creator>
      <dc:date>2020-12-22T09:11:04Z</dc:date>
    </item>
  </channel>
</rss>

