<?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 A simple permission solution in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/A-simple-permission-solution/m-p/169331#M40163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thought I would share this one. (QV v9 SR2 / IIS)&lt;/P&gt;&lt;P&gt;I needed a simple solution to show/hide Objects in QlikView. Normally we would want to show/hide particular sheets on a document but this script will work with any QV object so you can introduce a high level of granularity to the permission model.&lt;/P&gt;&lt;P&gt;For a proof of concept we pulled the permissions from a spreadsheet as in the example below;&lt;/P&gt;&lt;P&gt;NTLOGIN OBJECT&lt;BR /&gt;DOMAIN\USER01 SH01&lt;BR /&gt;DOMAIN\USER01 SH02&lt;BR /&gt;DOMAIN\USER01 CH02&lt;BR /&gt;DOMAIN\USER02 SH01&lt;BR /&gt;DOMAIN\USER03 SH01&lt;/P&gt;&lt;P&gt;This simple example could easily be expanded to a full relational database with link tables to include friendly object descriptions etc.&lt;/P&gt;&lt;P&gt;Step one is to load the permission spreadsheet near the start of the load script. (It doesn't have to be the first tab though)&lt;/P&gt;&lt;P&gt;Then to restrict access to a sheet with the ObjectID 'SH01'&lt;/P&gt;&lt;P&gt;Sheet Properties &amp;gt; Show Sheet &amp;gt; Conditional&lt;/P&gt;&lt;P&gt;add the following code;&lt;/P&gt;&lt;P&gt;=Count( {$*&amp;lt;OBJECT={"SH01"},NTLOGIN={$(=Upper(OSUser()))}&amp;gt;} NTLOGIN) &amp;gt; 0&lt;/P&gt;&lt;P&gt;To restrict access to a chart with the ObjectID 'CH01';&lt;/P&gt;&lt;P&gt;Chart Properties &amp;gt; Layout &amp;gt; Show &amp;gt; Conditional;&lt;/P&gt;&lt;P&gt;=Count( {$*&amp;lt;OBJECT={"CH02"},NTLOGIN={$(=Upper(OSUser()))}&amp;gt;} NTLOGIN) &amp;gt; 0&lt;/P&gt;&lt;P&gt;Note the change to the Object [ID] in each case. The Object ID is available from Properties &amp;gt; General&lt;/P&gt;&lt;P&gt;This seems to be working without a problem.&lt;/P&gt;&lt;P&gt;Now if I can just figure out how to pass the ObjectID automatically (i.e. Self) to the script!!!&lt;/P&gt;&lt;P&gt;Any suggestions to improve this code are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ouch QlikTech...Looks like you have 'Tag Bloat'. i.e. The list of tags presented to align new forum posts to. Could the number be reduced?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Nov 2009 23:16:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-30T23:16:36Z</dc:date>
    <item>
      <title>A simple permission solution</title>
      <link>https://community.qlik.com/t5/QlikView/A-simple-permission-solution/m-p/169331#M40163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thought I would share this one. (QV v9 SR2 / IIS)&lt;/P&gt;&lt;P&gt;I needed a simple solution to show/hide Objects in QlikView. Normally we would want to show/hide particular sheets on a document but this script will work with any QV object so you can introduce a high level of granularity to the permission model.&lt;/P&gt;&lt;P&gt;For a proof of concept we pulled the permissions from a spreadsheet as in the example below;&lt;/P&gt;&lt;P&gt;NTLOGIN OBJECT&lt;BR /&gt;DOMAIN\USER01 SH01&lt;BR /&gt;DOMAIN\USER01 SH02&lt;BR /&gt;DOMAIN\USER01 CH02&lt;BR /&gt;DOMAIN\USER02 SH01&lt;BR /&gt;DOMAIN\USER03 SH01&lt;/P&gt;&lt;P&gt;This simple example could easily be expanded to a full relational database with link tables to include friendly object descriptions etc.&lt;/P&gt;&lt;P&gt;Step one is to load the permission spreadsheet near the start of the load script. (It doesn't have to be the first tab though)&lt;/P&gt;&lt;P&gt;Then to restrict access to a sheet with the ObjectID 'SH01'&lt;/P&gt;&lt;P&gt;Sheet Properties &amp;gt; Show Sheet &amp;gt; Conditional&lt;/P&gt;&lt;P&gt;add the following code;&lt;/P&gt;&lt;P&gt;=Count( {$*&amp;lt;OBJECT={"SH01"},NTLOGIN={$(=Upper(OSUser()))}&amp;gt;} NTLOGIN) &amp;gt; 0&lt;/P&gt;&lt;P&gt;To restrict access to a chart with the ObjectID 'CH01';&lt;/P&gt;&lt;P&gt;Chart Properties &amp;gt; Layout &amp;gt; Show &amp;gt; Conditional;&lt;/P&gt;&lt;P&gt;=Count( {$*&amp;lt;OBJECT={"CH02"},NTLOGIN={$(=Upper(OSUser()))}&amp;gt;} NTLOGIN) &amp;gt; 0&lt;/P&gt;&lt;P&gt;Note the change to the Object [ID] in each case. The Object ID is available from Properties &amp;gt; General&lt;/P&gt;&lt;P&gt;This seems to be working without a problem.&lt;/P&gt;&lt;P&gt;Now if I can just figure out how to pass the ObjectID automatically (i.e. Self) to the script!!!&lt;/P&gt;&lt;P&gt;Any suggestions to improve this code are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ouch QlikTech...Looks like you have 'Tag Bloat'. i.e. The list of tags presented to align new forum posts to. Could the number be reduced?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2009 23:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/A-simple-permission-solution/m-p/169331#M40163</guid>
      <dc:creator />
      <dc:date>2009-11-30T23:16:36Z</dc:date>
    </item>
  </channel>
</rss>

