<?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: Qliksense Section Access Script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qliksense-Section-Access-Script/m-p/2507013#M104282</link>
    <description>&lt;P&gt;In QlikSense the NTNAME is replaced by USERID&lt;BR /&gt;so you need at least two columns in the section access:&lt;BR /&gt;ACCESS: which takes either ADMIN or USER&lt;BR /&gt;USERID: in the form of DOMAIN\USERNAME&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2025 07:49:55 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2025-02-24T07:49:55Z</dc:date>
    <item>
      <title>Qliksense Section Access Script</title>
      <link>https://community.qlik.com/t5/App-Development/Qliksense-Section-Access-Script/m-p/2506653#M104223</link>
      <description>&lt;P&gt;I am migrating my qlikview app to qliksense, in qlikview we use the below script for section access to provide access to users. If i use the same script in qliksense its not working. Please help in writing qliksense script for section access. Thanks in advance.&lt;/P&gt;
&lt;P&gt;Qlikview Script:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Section Access;&lt;/P&gt;
&lt;P&gt;LOAD Upper(ACCESS) as ACCESS, &lt;BR /&gt;NTNAME ,&lt;BR /&gt;Upper(PERMISSION) as PERMISSION1&lt;BR /&gt;&lt;BR /&gt;FROM [../Section Access.xlsx]&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Section_Access);&lt;/P&gt;
&lt;P&gt;Section Application;&lt;/P&gt;
&lt;P&gt;Data example:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 144pt;" border="0" width="265px" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 48pt;" span="3" width="64" /&gt; &lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="76.375px" height="15px" style="height: 15.0pt; width: 48pt;"&gt;ACCESS&lt;/TD&gt;
&lt;TD width="78.1339px" height="15px" style="width: 48pt;"&gt;NTNAME&lt;/TD&gt;
&lt;TD width="111.036px" height="15px" style="width: 48pt;"&gt;PERMISSION&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="76.375px" height="15px" style="height: 15.0pt;"&gt;ADMIN&lt;/TD&gt;
&lt;TD width="78.1339px" height="15px"&gt;Red&lt;/TD&gt;
&lt;TD width="111.036px" height="15px"&gt;*&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="76.375px" height="15px" style="height: 15.0pt;"&gt;ADMIN&lt;/TD&gt;
&lt;TD width="78.1339px" height="15px"&gt;Orange&lt;/TD&gt;
&lt;TD width="111.036px" height="15px"&gt;*&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="76.375px" height="15px" style="height: 15.0pt;"&gt;User&lt;/TD&gt;
&lt;TD width="78.1339px" height="15px"&gt;Green&lt;/TD&gt;
&lt;TD width="111.036px" height="15px"&gt;Green&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="76.375px" height="15px" style="height: 15.0pt;"&gt;User&lt;/TD&gt;
&lt;TD width="78.1339px" height="15px"&gt;Green&lt;/TD&gt;
&lt;TD width="111.036px" height="15px"&gt;White&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="76.375px" height="15px" style="height: 15.0pt;"&gt;User&lt;/TD&gt;
&lt;TD width="78.1339px" height="15px"&gt;Green&lt;/TD&gt;
&lt;TD width="111.036px" height="15px"&gt;Black&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="76.375px" height="15px" style="height: 15.0pt;"&gt;User&lt;/TD&gt;
&lt;TD width="78.1339px" height="15px"&gt;Black&lt;/TD&gt;
&lt;TD width="111.036px" height="15px"&gt;Black&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Wed, 19 Feb 2025 16:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qliksense-Section-Access-Script/m-p/2506653#M104223</guid>
      <dc:creator>sharu055</dc:creator>
      <dc:date>2025-02-19T16:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Qliksense Section Access Script</title>
      <link>https://community.qlik.com/t5/App-Development/Qliksense-Section-Access-Script/m-p/2506662#M104224</link>
      <description>&lt;P&gt;Code looks ok but you have to change your from path in qliksense it's quite different than qlikview&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Section Access;&lt;/P&gt;
&lt;P&gt;LOAD&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; UPPER(ACCESS) as ACCESS,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; NTNAME,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; UPPER(PERMISSION) as PERMISSION1&lt;/P&gt;
&lt;P&gt;FROM [&lt;STRONG&gt;lib://YourDataConnection/Section&lt;/STRONG&gt; Access.xlsx]&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Section_Access);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Section Appl&lt;SPAN&gt;ication;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 17:58:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qliksense-Section-Access-Script/m-p/2506662#M104224</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2025-02-19T17:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Qliksense Section Access Script</title>
      <link>https://community.qlik.com/t5/App-Development/Qliksense-Section-Access-Script/m-p/2506773#M104231</link>
      <description>&lt;P&gt;Yes, I used the proper path for qliksense to fetch the data, after refresh i am getting the below popup. I am into Admin and permission is *. Not sure why i am getting below popup, Its in Dev not moved to UAT.&amp;nbsp;&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="sharu055_0-1740047255059.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177746i877DBDE8B51E7784/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sharu055_0-1740047255059.png" alt="sharu055_0-1740047255059.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 10:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qliksense-Section-Access-Script/m-p/2506773#M104231</guid>
      <dc:creator>sharu055</dc:creator>
      <dc:date>2025-02-20T10:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Qliksense Section Access Script</title>
      <link>https://community.qlik.com/t5/App-Development/Qliksense-Section-Access-Script/m-p/2506966#M104277</link>
      <description>&lt;P&gt;In a text and Image viz- just type out osuser() and check your userid-&amp;nbsp;&lt;BR /&gt;For instance, if directory is XYZ and user id is ABC- then username will be XYZ\ABC&lt;BR /&gt;&lt;BR /&gt;I hope the format that you have provided is correct&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2025 14:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qliksense-Section-Access-Script/m-p/2506966#M104277</guid>
      <dc:creator>simsa</dc:creator>
      <dc:date>2025-02-22T14:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Qliksense Section Access Script</title>
      <link>https://community.qlik.com/t5/App-Development/Qliksense-Section-Access-Script/m-p/2506983#M104278</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/7996"&gt;@sharu055&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;You can refer below script and considerations ==&amp;gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Qlik Sense Section Access Script (Equivalent to QlikView Logic)&lt;BR /&gt;Section Access Implementation&lt;/P&gt;
&lt;P&gt;Section Access;&lt;/P&gt;
&lt;P&gt;// Load the security table (Qlik Sense is case-sensitive)&lt;BR /&gt;LOAD &lt;BR /&gt;Upper(ACCESS) as ACCESS, // Should be either "ADMIN" or "USER" &lt;BR /&gt;Upper(NTNAME) as USERID, // Must align exactly with the Qlik Sense login (case-sensitive) &lt;BR /&gt;Upper(PERMISSION) as PERMISSIONS // The field name should be "PERMISSIONS" (not singular) &lt;BR /&gt;FROM [lib://YourFolder/Section_Access.xlsx] &lt;BR /&gt;(ooxml, embedded labels, table is Section_Access);&lt;/P&gt;
&lt;P&gt;Section Application;&lt;/P&gt;
&lt;P&gt;// Your main data model starts here...&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;== Key Differences Between QlikView &amp;amp; Qlik Sense ==&lt;/P&gt;
&lt;P&gt;Field Naming Conventions:&lt;BR /&gt;Instead of NTNAME, Qlik Sense expects USERID, which should precisely match the user’s login (e.g., DOMAIN\Ravi or an email address).&lt;BR /&gt;The field PERMISSIONS must be used instead of PERMISSION1 (note the plural form).&lt;BR /&gt;Case Sensitivity Considerations:&lt;BR /&gt;User logins in Qlik Sense are case-sensitive.&lt;BR /&gt;To prevent mismatches, use Upper() to standardize usernames if they are stored in uppercase.&lt;/P&gt;
&lt;P&gt;Permission Formatting:&lt;BR /&gt;If a user has access to multiple permissions, separate them using semicolons (;).&lt;/P&gt;
&lt;P&gt;ACCESS USERID PERMISSIONS&lt;BR /&gt;ADMIN DOMAIN\Red *&lt;BR /&gt;ADMIN DOMAIN\Orange *&lt;BR /&gt;USER DOMAIN\Green Green;White;Black&lt;BR /&gt;USER DOMAIN\Black Black&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Essential Qlik Sense Considerations :&lt;/P&gt;
&lt;P&gt;User Authentication:&lt;BR /&gt;Ensure that users log into Qlik Sense through an identity provider (e.g., Active Directory, OIDC) that corresponds to the format used in USERID.&lt;/P&gt;
&lt;P&gt;Restricting Sheet Access:&lt;BR /&gt;After reloading, control sheet-level access by right-clicking the sheet &amp;gt; Properties &amp;gt; Security settings.&lt;/P&gt;
&lt;P&gt;Data Reduction:&lt;BR /&gt;If you need to limit access to specific rows in the dataset, add an OMIT field in the Section Access table.&lt;BR /&gt;&lt;BR /&gt;Troubleshooting &amp;amp; Common Issues ==&amp;gt;&lt;BR /&gt;"No Data Available" Error: Ensure that USERID exactly matches the logged-in user’s identity. You can confirm this by checking =OSUser() in a text object.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Permission Issues: Use * for admin users to grant unrestricted access.&lt;BR /&gt;&lt;BR /&gt;Reloading Issues: Always test the script with a user who has both Section Access rights and proper QMC security permissions.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2025 17:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qliksense-Section-Access-Script/m-p/2506983#M104278</guid>
      <dc:creator>Ravi1212</dc:creator>
      <dc:date>2025-02-23T17:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Qliksense Section Access Script</title>
      <link>https://community.qlik.com/t5/App-Development/Qliksense-Section-Access-Script/m-p/2507013#M104282</link>
      <description>&lt;P&gt;In QlikSense the NTNAME is replaced by USERID&lt;BR /&gt;so you need at least two columns in the section access:&lt;BR /&gt;ACCESS: which takes either ADMIN or USER&lt;BR /&gt;USERID: in the form of DOMAIN\USERNAME&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 07:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qliksense-Section-Access-Script/m-p/2507013#M104282</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2025-02-24T07:49:55Z</dc:date>
    </item>
  </channel>
</rss>

