<?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 Qlik Sense Repository API: How to Audit security rule for Hub Only or QMC Only in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-API-How-to-Audit-security-rule-for-Hub/ta-p/1778411</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;This is a sample on how to audit security rules with the Qlik Sense Repository Service (QRS) API.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Environments:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp; June 2017 and later&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Resolution&lt;/H3&gt;
&lt;P&gt;In order to filter on "Hub Only" or "QMC Only",&amp;nbsp;&lt;SPAN&gt;"environmentAttributes" needs to be set.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Hub &amp;amp; QMC :&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;"environmentAttributes":"" (or do not specify it)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Hub Only:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;"environmentAttributes":"conte&lt;WBR /&gt;xt=AppAccess;"&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;QMC Only:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;"environmentAttributes":"conte&lt;WBR /&gt;xt=ManagementAccess;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;$body = '{"resourceType":"App","subjectRef":{"resourceFilter":""},"actions":46,"environmentAttributes":"context=AppAccess;","subjectProperties":["id","name","userId","userDirectory"],"auditLimit":999999,"outputObjectsPrivileges":0,"resourceProperties":["name"]}'
$hdrs = @{}
$hdrs.Add("X-Qlik-xrfkey","12345678qwertyui")
$hdrs.Add("hdr-usr","DOMAIN\Administrator")
$url = "https://qlikserver1.domain.local/hdr/qrs/systemrule/security/audit/matrix?xrfkey=12345678qwertyui"
Invoke-RestMethod -Uri $url -Method Post -Headers $hdrs -Body $body -ContentType 'application/json'&lt;/LI-CODE&gt;
&lt;P&gt;Note: the above sample is using header authentication for simplicity.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More details can be found on the help site.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/November2020/APIs/RepositoryServiceAPI/index.html?page=1514" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense-developer/November2020/APIs/RepositoryServiceAPI/index.html?page=1514&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/November2020/APIs/RepositoryServiceAPI/index.html?page=1570" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/se&lt;WBR /&gt;nse-developer/November2020/API&lt;WBR /&gt;s/RepositoryServiceAPI/index.h&lt;WBR /&gt;tml?page=1570&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 23 Feb 2021 08:59:22 GMT</pubDate>
    <dc:creator>Damien_V</dc:creator>
    <dc:date>2021-02-23T08:59:22Z</dc:date>
    <item>
      <title>Qlik Sense Repository API: How to Audit security rule for Hub Only or QMC Only</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-API-How-to-Audit-security-rule-for-Hub/ta-p/1778411</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;This is a sample on how to audit security rules with the Qlik Sense Repository Service (QRS) API.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Environments:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp; June 2017 and later&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Resolution&lt;/H3&gt;
&lt;P&gt;In order to filter on "Hub Only" or "QMC Only",&amp;nbsp;&lt;SPAN&gt;"environmentAttributes" needs to be set.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Hub &amp;amp; QMC :&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;"environmentAttributes":"" (or do not specify it)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Hub Only:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;"environmentAttributes":"conte&lt;WBR /&gt;xt=AppAccess;"&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;QMC Only:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;"environmentAttributes":"conte&lt;WBR /&gt;xt=ManagementAccess;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;$body = '{"resourceType":"App","subjectRef":{"resourceFilter":""},"actions":46,"environmentAttributes":"context=AppAccess;","subjectProperties":["id","name","userId","userDirectory"],"auditLimit":999999,"outputObjectsPrivileges":0,"resourceProperties":["name"]}'
$hdrs = @{}
$hdrs.Add("X-Qlik-xrfkey","12345678qwertyui")
$hdrs.Add("hdr-usr","DOMAIN\Administrator")
$url = "https://qlikserver1.domain.local/hdr/qrs/systemrule/security/audit/matrix?xrfkey=12345678qwertyui"
Invoke-RestMethod -Uri $url -Method Post -Headers $hdrs -Body $body -ContentType 'application/json'&lt;/LI-CODE&gt;
&lt;P&gt;Note: the above sample is using header authentication for simplicity.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More details can be found on the help site.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/November2020/APIs/RepositoryServiceAPI/index.html?page=1514" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense-developer/November2020/APIs/RepositoryServiceAPI/index.html?page=1514&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/November2020/APIs/RepositoryServiceAPI/index.html?page=1570" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/se&lt;WBR /&gt;nse-developer/November2020/API&lt;WBR /&gt;s/RepositoryServiceAPI/index.h&lt;WBR /&gt;tml?page=1570&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Feb 2021 08:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Repository-API-How-to-Audit-security-rule-for-Hub/ta-p/1778411</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2021-02-23T08:59:22Z</dc:date>
    </item>
  </channel>
</rss>

