<?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 Section access exclude a AD group from current script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Section-access-exclude-a-AD-group-from-current-script/m-p/1891537#M73472</link>
    <description>&lt;P&gt;Hey! I'm currently working on a section access script. The script is working in filtering the data. However, I would like to allow a/more AD group(s) to have full access, such that that, the people in the AD group(s) can view all the data.&lt;/P&gt;
&lt;P&gt;Can anybody help here?&lt;/P&gt;
&lt;P&gt;To elaborate, my script is made up of 2 sections:&lt;/P&gt;
&lt;P&gt;Section 1) Connect Qlik to an internal database, where BU and EMPLOYEEGUID is loaded whenever an account log-in:&lt;/P&gt;
&lt;P&gt;[CustomerTable]:&lt;BR /&gt;LOAD BU,&lt;BR /&gt;EMPLOYEEGUID;&lt;BR /&gt;SQL SELECT &lt;BR /&gt;BU,&lt;BR /&gt;EMPLOYEEGUID &lt;BR /&gt;FROM &lt;BR /&gt;"Maconomy_comp_Kunder".dbo."T_Maconomy_Employees"&lt;BR /&gt;WHERE&lt;BR /&gt;LEN(EMPLOYEEGUID) &amp;gt;0 AND LEN(BU) &amp;gt; 0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Section 2) Matches the loaded BU with the BU from the data and make section access based upon this:&lt;/P&gt;
&lt;P&gt;Section Access;&lt;/P&gt;
&lt;P&gt;[SectionAccessTable]:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD&lt;BR /&gt;'USER' as ACCESS,&lt;BR /&gt;'GLB\' &amp;amp; UPPER(EMPLOYEEGUID) AS USERID,&lt;BR /&gt;BU as HistoriskBU&lt;BR /&gt;Resident CustomerTable;&lt;/P&gt;
&lt;P&gt;Temp_HistoriskBU:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt;HistoriskBU&lt;BR /&gt;RESIDENT [Jobdata];&lt;/P&gt;
&lt;P&gt;Concatenate([SectionAccessTable])&lt;BR /&gt;LOAD &lt;BR /&gt;'INTERNAL\SA_SCHEDULER' AS USERID,&lt;BR /&gt;'ADMIN' AS ACCESS,&lt;BR /&gt;HistoriskBU&lt;BR /&gt;RESIDENT Temp_HistoriskBU;&lt;/P&gt;
&lt;P&gt;DROP TABLE Temp_HistoriskBU;&lt;/P&gt;
&lt;P&gt;Section Application;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Feb 2022 14:09:23 GMT</pubDate>
    <dc:creator>sebHan</dc:creator>
    <dc:date>2022-02-10T14:09:23Z</dc:date>
    <item>
      <title>Section access exclude a AD group from current script</title>
      <link>https://community.qlik.com/t5/App-Development/Section-access-exclude-a-AD-group-from-current-script/m-p/1891537#M73472</link>
      <description>&lt;P&gt;Hey! I'm currently working on a section access script. The script is working in filtering the data. However, I would like to allow a/more AD group(s) to have full access, such that that, the people in the AD group(s) can view all the data.&lt;/P&gt;
&lt;P&gt;Can anybody help here?&lt;/P&gt;
&lt;P&gt;To elaborate, my script is made up of 2 sections:&lt;/P&gt;
&lt;P&gt;Section 1) Connect Qlik to an internal database, where BU and EMPLOYEEGUID is loaded whenever an account log-in:&lt;/P&gt;
&lt;P&gt;[CustomerTable]:&lt;BR /&gt;LOAD BU,&lt;BR /&gt;EMPLOYEEGUID;&lt;BR /&gt;SQL SELECT &lt;BR /&gt;BU,&lt;BR /&gt;EMPLOYEEGUID &lt;BR /&gt;FROM &lt;BR /&gt;"Maconomy_comp_Kunder".dbo."T_Maconomy_Employees"&lt;BR /&gt;WHERE&lt;BR /&gt;LEN(EMPLOYEEGUID) &amp;gt;0 AND LEN(BU) &amp;gt; 0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Section 2) Matches the loaded BU with the BU from the data and make section access based upon this:&lt;/P&gt;
&lt;P&gt;Section Access;&lt;/P&gt;
&lt;P&gt;[SectionAccessTable]:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD&lt;BR /&gt;'USER' as ACCESS,&lt;BR /&gt;'GLB\' &amp;amp; UPPER(EMPLOYEEGUID) AS USERID,&lt;BR /&gt;BU as HistoriskBU&lt;BR /&gt;Resident CustomerTable;&lt;/P&gt;
&lt;P&gt;Temp_HistoriskBU:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt;HistoriskBU&lt;BR /&gt;RESIDENT [Jobdata];&lt;/P&gt;
&lt;P&gt;Concatenate([SectionAccessTable])&lt;BR /&gt;LOAD &lt;BR /&gt;'INTERNAL\SA_SCHEDULER' AS USERID,&lt;BR /&gt;'ADMIN' AS ACCESS,&lt;BR /&gt;HistoriskBU&lt;BR /&gt;RESIDENT Temp_HistoriskBU;&lt;/P&gt;
&lt;P&gt;DROP TABLE Temp_HistoriskBU;&lt;/P&gt;
&lt;P&gt;Section Application;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 14:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Section-access-exclude-a-AD-group-from-current-script/m-p/1891537#M73472</guid>
      <dc:creator>sebHan</dc:creator>
      <dc:date>2022-02-10T14:09:23Z</dc:date>
    </item>
  </channel>
</rss>

