<?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: Tag Value for Security Rules not available through QRS? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Tag-Value-for-Security-Rules-not-available-through-QRS/m-p/1910594#M16522</link>
    <description>&lt;P&gt;Hello all, I found the issue :&lt;BR /&gt;&lt;BR /&gt;The code given by Qlik is not correct because we can't parse the Array. it should be :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RestConnectorMasterTable:
SQL SELECT 
	"id",
	"createdDate",
	"modifiedDate",
	"modifiedByUserName",
	"category",
	"subcategory",
	"type",
	"name",
	"rule",
	"resourceFilter",
	"actions",
	"comment",
	"disabled",
	"ruleContext",
	"seedId",
	"version",
	"privileges",
	"schemaPath",
	"__KEY_root",
//Code given by Qlik : KO
// 	(SELECT 
// 		"@Value" AS "tag_tag_@Value",
// 		"__FK_tags"
// 	FROM "tags" FK "__FK_tags" ArrayValueAlias "tag_tag_@Value")
//Code I corrected : OK
	(SELECT 
		"id" AS "tag_tag_id",
		"name" AS "tag_tag_name",
		"privileges" AS "tag_tag_privileges",
		"__FK_tags"
	FROM "tags" FK "__FK_tags")
FROM JSON (wrap on) "root" PK "__KEY_root";&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Same for tags on user, Application, etc...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simon&lt;/P&gt;</description>
    <pubDate>Mon, 28 Mar 2022 12:46:59 GMT</pubDate>
    <dc:creator>simonaubert</dc:creator>
    <dc:date>2022-03-28T12:46:59Z</dc:date>
    <item>
      <title>Tag Value for Security Rules not available through QRS?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Tag-Value-for-Security-Rules-not-available-through-QRS/m-p/1907268#M16467</link>
      <description>&lt;P&gt;Hello all,&lt;BR /&gt;&lt;BR /&gt;Pretty weird but I don't manage to retrieve Tag value from security rules&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Script&amp;nbsp; :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LIB CONNECT TO 'REST_Custom_Monitor_SystemRule';

RestConnectorMasterTable:
SQL SELECT 
	"id",
	"createdDate",
	"modifiedDate",
	"modifiedByUserName",
	"category",
	"subcategory",
	"type",
	"name",
	"rule",
	"resourceFilter",
	"actions",
	"comment",
	"disabled",
	"ruleContext",
	"seedId",
	"version",
	"privileges",
	"schemaPath",
	"__KEY_root",
	(SELECT 
		"@Value",
		"__FK_tags"
	FROM "tags" FK "__FK_tags" ArrayValueAlias "@Value")
FROM JSON (wrap on) "root" PK "__KEY_root";

[tags]:
LOAD	[@Value],
[__FK_tags] AS [__KEY_root]
RESIDENT RestConnectorMasterTable
WHERE NOT IsNull([__FK_tags]);


[Qlik System Rule]:
LOAD	[id] as [Qlik System Rule Id],
	[createdDate] as [Qlik System Creation Date],
	[modifiedDate] as [Qlik System Rule Modification Date],
	[modifiedByUserName] as [Qlik System Rule Modified by UserName],
	[category] as [Qlik System Rule Category],
	[subcategory] as [Qlik System Subcategory],
	[type] as [Qlik System Rule Type],
	[name] as [Qlik System Rule Name],
	[rule] as [Qlik System Rule Rule],
	[resourceFilter] as [Qlik System Rule Resource Filter],
	[actions] as [Qlik System Rule Actions],
	[comment] as [Qlik System Rule Comment],
	[disabled] as [Qlik System Rule Disabled],
	[ruleContext] as [Qlik System Rule RuleContext],
	[seedId] as [Qlik System Rule Seed Id],
	[version] as [Qlik System Rule Version],
	[privileges] as [Qlik System Rule Privileges],
	[schemaPath] as [Qlik System Rule Schema Path]
RESIDENT RestConnectorMasterTable
WHERE NOT IsNull([__KEY_root]);


DROP TABLE RestConnectorMasterTable;

exit script;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Log&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;15:55:08
Message effacé.
15:55:40
---
Chargement de données démarré
---
Connecté
RestConnectorMasterTable &amp;lt;&amp;lt; RestConnectorMasterTable
Lignes extraites : 158
tags &amp;lt;&amp;lt; RestConnectorMasterTable
Lignes extraites : 3
Qlik System Rule &amp;lt;&amp;lt; RestConnectorMasterTable
Lignes extraites : 155
---
Application enregistrée
Opération terminée correctement
0 erreur(s) forcée(s)
0 clé(s) synthétique(s)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see, Qlik finds 3 rows for tags (which is true )but when I visualize it, the value are null ???&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="simonaubert_1-1647702427191.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/74902i93C15CB6B97CC75F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="simonaubert_1-1647702427191.png" alt="simonaubert_1-1647702427191.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I use Qlik Sense Server May 2021 Patch 4.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Sat, 19 Mar 2022 15:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Tag-Value-for-Security-Rules-not-available-through-QRS/m-p/1907268#M16467</guid>
      <dc:creator>simonaubert</dc:creator>
      <dc:date>2022-03-19T15:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Tag Value for Security Rules not available through QRS?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Tag-Value-for-Security-Rules-not-available-through-QRS/m-p/1910594#M16522</link>
      <description>&lt;P&gt;Hello all, I found the issue :&lt;BR /&gt;&lt;BR /&gt;The code given by Qlik is not correct because we can't parse the Array. it should be :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RestConnectorMasterTable:
SQL SELECT 
	"id",
	"createdDate",
	"modifiedDate",
	"modifiedByUserName",
	"category",
	"subcategory",
	"type",
	"name",
	"rule",
	"resourceFilter",
	"actions",
	"comment",
	"disabled",
	"ruleContext",
	"seedId",
	"version",
	"privileges",
	"schemaPath",
	"__KEY_root",
//Code given by Qlik : KO
// 	(SELECT 
// 		"@Value" AS "tag_tag_@Value",
// 		"__FK_tags"
// 	FROM "tags" FK "__FK_tags" ArrayValueAlias "tag_tag_@Value")
//Code I corrected : OK
	(SELECT 
		"id" AS "tag_tag_id",
		"name" AS "tag_tag_name",
		"privileges" AS "tag_tag_privileges",
		"__FK_tags"
	FROM "tags" FK "__FK_tags")
FROM JSON (wrap on) "root" PK "__KEY_root";&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Same for tags on user, Application, etc...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 12:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Tag-Value-for-Security-Rules-not-available-through-QRS/m-p/1910594#M16522</guid>
      <dc:creator>simonaubert</dc:creator>
      <dc:date>2022-03-28T12:46:59Z</dc:date>
    </item>
  </channel>
</rss>

