<?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: QlikView Section Access from Database with SQL request in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QlikView-Section-Access-from-Database-with-SQL-request/m-p/1816495#M1213055</link>
    <description>&lt;P&gt;Hello, and thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/130089"&gt;@PadmaPriya&lt;/a&gt;&amp;nbsp;for your answer.&amp;nbsp;&lt;BR /&gt;I managed to get access from y database. Now when my user tries to connect to the board:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if he is an ADMIN, he enters his USERID which is his personnal_number and I added a column password, so he also has to enter his password.&lt;/LI&gt;&lt;LI&gt;if he is an USER, he should leave the USERID prompt window empty and only enter his password.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But I still have a problem:&lt;BR /&gt;When I try to connect with my ADMIN account, who has a * for the data (and should see all the data) I can only see some of the data (the one already present in my table for other users).&amp;nbsp;&lt;BR /&gt;So my question is: how can I say that I want my admin to see absolutely every value available for this column?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a screenshot of my table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table_profil.PNG" style="width: 600px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57177i305C303796A5E8D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="table_profil.PNG" alt="table_profil.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And my code for the section access is:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Section Access;
Load
	Upper(ACCESS) as ACCESS,
	Upper(USERID) as USERID,
	Upper(PASSWORD) as PASSWORD,
	Upper(NATURE) as NATURE;
 
SQL Select
	access_level as ACCESS,
	matricule as USERID,
	user_pwd as PASSWORD,
	nature as NATURE
FROM `bdd`.`profil`;
Section Application;
 
SQL Select
	access_level,
	matricule,
	user_pwd,
	nature
FROM `bdd`.`profil`;&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 21 Jun 2021 13:25:34 GMT</pubDate>
    <dc:creator>JenniferE</dc:creator>
    <dc:date>2021-06-21T13:25:34Z</dc:date>
    <item>
      <title>QlikView Section Access from Database with SQL request</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Section-Access-from-Database-with-SQL-request/m-p/1815987#M1213021</link>
      <description>&lt;P&gt;I am new to QlikView and I have a problem to make the section access for my board. I saw everywhere that section access uses an&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;LOAD [col_name1, col_name2] INLINE&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;syntax, with generally the columns ACCESS, USERID and PASSWORD stocked in an external file, like an excel file.&lt;/P&gt;&lt;P&gt;The thing is, in my project the access to certain datas of the board has to be authorized based on the data in the table&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;profile&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of my database. That&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;profile&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;table contains an ID, a name, a firstname and a personnal_number. And so, the people who have a personnal_number registered can have access to the whole board, while the people who don't have a personnal_number should only see some data (which is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;treatment&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the column&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;event_nature&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the table&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;event&lt;/EM&gt;).&lt;/P&gt;&lt;P&gt;So, when opening the board, the user should be asked his name and firstname, and then QlikView will look into the database to see if he has a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;personnal_number&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;registered or not.&lt;/P&gt;&lt;P&gt;My question is: I have absolutely zero idea how to do this.&lt;/P&gt;&lt;P&gt;I started this little code but it's obviously uncomplete, and probably false too...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Section Access;

Load Upper(name) as NAME,
    Upper(firstname) as FIRSTNAME,
    Upper(personnal_number) as PERSONNAL_NUMBER,
    Upper(event_nature) as NATURE;
    
SQL Select 
    name as NAME,
    firstname as FIRSTNAME,
    personnal_number as PERSONNAL_NUMBER
FROM `my_db`.`profile`;

SQL Select
    event_nature as NATURE
FROM `my_db`.`event`;
    
Section Application;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me please? First to correct this code and second to tell me how to tell QlikView that the access is based on the personnal_number and the event_nature?&lt;/P&gt;&lt;P&gt;Thank you so much for your time and help.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 08:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Section-Access-from-Database-with-SQL-request/m-p/1815987#M1213021</guid>
      <dc:creator>JenniferE</dc:creator>
      <dc:date>2021-06-18T08:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Section Access from Database with SQL request</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Section-Access-from-Database-with-SQL-request/m-p/1816211#M1213034</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/143964"&gt;@JenniferE&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please refer to below thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Section-Access-Loading-from-SQL/td-p/258137" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Section-Access-Loading-from-SQL/td-p/258137&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Padma Priya&lt;/P&gt;&lt;P&gt;Qlik Support&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 20:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Section-Access-from-Database-with-SQL-request/m-p/1816211#M1213034</guid>
      <dc:creator>PadmaPriya</dc:creator>
      <dc:date>2021-06-18T20:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Section Access from Database with SQL request</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Section-Access-from-Database-with-SQL-request/m-p/1816495#M1213055</link>
      <description>&lt;P&gt;Hello, and thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/130089"&gt;@PadmaPriya&lt;/a&gt;&amp;nbsp;for your answer.&amp;nbsp;&lt;BR /&gt;I managed to get access from y database. Now when my user tries to connect to the board:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if he is an ADMIN, he enters his USERID which is his personnal_number and I added a column password, so he also has to enter his password.&lt;/LI&gt;&lt;LI&gt;if he is an USER, he should leave the USERID prompt window empty and only enter his password.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;But I still have a problem:&lt;BR /&gt;When I try to connect with my ADMIN account, who has a * for the data (and should see all the data) I can only see some of the data (the one already present in my table for other users).&amp;nbsp;&lt;BR /&gt;So my question is: how can I say that I want my admin to see absolutely every value available for this column?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a screenshot of my table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table_profil.PNG" style="width: 600px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57177i305C303796A5E8D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="table_profil.PNG" alt="table_profil.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And my code for the section access is:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Section Access;
Load
	Upper(ACCESS) as ACCESS,
	Upper(USERID) as USERID,
	Upper(PASSWORD) as PASSWORD,
	Upper(NATURE) as NATURE;
 
SQL Select
	access_level as ACCESS,
	matricule as USERID,
	user_pwd as PASSWORD,
	nature as NATURE
FROM `bdd`.`profil`;
Section Application;
 
SQL Select
	access_level,
	matricule,
	user_pwd,
	nature
FROM `bdd`.`profil`;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 21 Jun 2021 13:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Section-Access-from-Database-with-SQL-request/m-p/1816495#M1213055</guid>
      <dc:creator>JenniferE</dc:creator>
      <dc:date>2021-06-21T13:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView Section Access from Database with SQL request</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Section-Access-from-Database-with-SQL-request/m-p/1831105#M1214536</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/143964"&gt;@JenniferE&lt;/a&gt;,&lt;/P&gt;

&lt;P&gt;The reduction fields in the Section Access table must have an empty string to match everything else not included in the table.&lt;/P&gt;

&lt;P&gt;This is also mentioned in the article below in section 1.:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/Section-Access-Best-Practice-Guidance/ta-p/1712333" target="_blank"&gt;https://community.qlik.com/t5/Knowledge/Section-Access-Best-Practice-Guidance/ta-p/1712333&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also, in&amp;nbsp;the first example under link below this is somewhat hinted:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/Security/manage-security-with-section-access.htm#anchor-1" target="_blank"&gt;https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/Security/manage-security-with-section-access.htm#anchor-1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 13:52:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Section-Access-from-Database-with-SQL-request/m-p/1831105#M1214536</guid>
      <dc:creator>Andre_Sostizzo</dc:creator>
      <dc:date>2021-08-25T13:52:19Z</dc:date>
    </item>
  </channel>
</rss>

