<?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: Security restrictions based on Data Base in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206929#M877739</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Start with creating a RESIDENT table called USERADMIN with a single record loaded from an INLINE spec. That should be the ADMIN user, or the user that does the reloads on your server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then CONCATENATE LOAD all QVD entries you need to that first table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then CONCATENATE LOAD all DB entries you need to that expanded table. Yes, you can add the QlikView CONCATENATE keyword to a SQL SELECT statement. See here: &lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptPrefixes/concatenate.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptPrefixes/concatenate.htm"&gt;Concatenate ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the fields all have the same names, you will end up with a single table with authorizations from the three sources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2016 21:28:52 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2016-10-19T21:28:52Z</dc:date>
    <item>
      <title>Security restrictions based on Data Base</title>
      <link>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206928#M877737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'd like to add section access through Data base.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="font-size: 13.3333px;"&gt;Section Access;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;USERADMIN:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;LOAD&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Field1),&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;Field2&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;Field3&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;Field4&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UPPER( &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;Field5) as CODE&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;Field6&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;FROM&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;...\USERADMIN_ROLE.QVD (qvd);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SQL SELECT&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; "Field1",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;Field2&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;Field3&lt;/SPAN&gt;",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;Field4&lt;/SPAN&gt;",&lt;/P&gt;
&lt;P&gt;&amp;nbsp; UPPER(&amp;nbsp; "&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;Field5&lt;/SPAN&gt;") as CODE,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;Field6&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;Field7&lt;/SPAN&gt;",&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;Field8&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;FROM &lt;/P&gt;
&lt;P&gt;&amp;nbsp; .........";&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Section Application;&lt;/P&gt;
&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" style="font-size: 13.3333px;"&gt;&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I want to restrict user based upon CODE and Field5 in SQL DB.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So if a user has a CODE=500, he should only see data related to 500 and all other fields should not appear to him.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm loading the &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;USERADMIN table from a qvd and using it in Section Access and I'm using SQL querry as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;I also want to load a Inline table as I want to add a single user as an Admin, which I cannot do in Data Base. All other users are available in Data base with a particular Code to them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;I tried loading in many different ways and changing the querry in qlik but still doesn't work. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;So with a qvd, Inline &amp;amp; SQL, how can I apply section access?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me what wrong I'm doing here?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708" target="_blank"&gt;stalwar1&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/15823" target="_blank"&gt;swuehl&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/218859" target="_blank"&gt;loveisfail&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206928#M877737</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Security restrictions based on Data Base</title>
      <link>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206929#M877739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Start with creating a RESIDENT table called USERADMIN with a single record loaded from an INLINE spec. That should be the ADMIN user, or the user that does the reloads on your server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then CONCATENATE LOAD all QVD entries you need to that first table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then CONCATENATE LOAD all DB entries you need to that expanded table. Yes, you can add the QlikView CONCATENATE keyword to a SQL SELECT statement. See here: &lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptPrefixes/concatenate.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/ScriptPrefixes/concatenate.htm"&gt;Concatenate ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the fields all have the same names, you will end up with a single table with authorizations from the three sources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 21:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206929#M877739</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-10-19T21:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Security restrictions based on Data Base</title>
      <link>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206930#M877740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The field names coming from DB query is different compared to field names in Qlik.&lt;/P&gt;&lt;P&gt;I changed the required name Field 5 from Qlik to Code&lt;/P&gt;&lt;P&gt;and In DB the Field 5 name is actually Field 10 (example)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I just want to restrict it based on CODE&lt;/P&gt;&lt;P&gt;I did not understand what you explained...&lt;/P&gt;&lt;P&gt;Can you show an example script?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 22:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206930#M877740</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2016-10-19T22:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Security restrictions based on Data Base</title>
      <link>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206931#M877741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/218859"&gt;loveisfail&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 10:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206931#M877741</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2016-10-20T10:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Security restrictions based on Data Base</title>
      <link>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206932#M877742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very limited expertise in Section Access, besides you are getting help from one of the best, I am sure &lt;A href="https://community.qlik.com/people/pcammaert"&gt;pcammaert&lt;/A&gt;‌ will respond back to any of your queries here &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 10:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206932#M877742</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-20T10:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Security restrictions based on Data Base</title>
      <link>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206933#M877743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Peter's reply was confusing with no example. And it is hard to understand when I also do not have much experience in section access based on data base.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 10:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206933#M877743</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2016-10-20T10:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Security restrictions based on Data Base</title>
      <link>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206934#M877744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, Would you describe more. I am confusing here. You've load data from qvd and then SQL. What is the use of Sql here (I mean Any reason to take those). If yes, Provide me that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meantime, HAve a look this about your &lt;A href="https://community.qlik.com/docs/DOC-5917"&gt;QlikView Section Access Examples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- ANIL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 10:59:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206934#M877744</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-10-20T10:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Security restrictions based on Data Base</title>
      <link>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206935#M877745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/218859"&gt;loveisfail&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table loaded from DB specially made for section access&lt;/P&gt;&lt;P&gt;In those fields are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extract query:&lt;/P&gt;&lt;P&gt;SQL Select&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USERNAME&lt;/P&gt;&lt;P&gt;ACCESS&lt;/P&gt;&lt;P&gt;CODE_ID&lt;/P&gt;&lt;P&gt;ROLE_NAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From......&lt;/P&gt;&lt;P&gt;Store into.... as .qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next step I did was I transformed this qvd into&lt;/P&gt;&lt;P&gt;USERS:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;USERNAME&lt;/P&gt;&lt;P&gt;ACCESS&lt;/P&gt;&lt;P&gt;CODEID&lt;/P&gt;&lt;P&gt;ROLENAME;&lt;/P&gt;&lt;P&gt;From... Extract.qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Third step I did is I have a data model where all transform qvd's are loaded but I did not add the USERS.qvd to my data model, instead I added into my source file where I'm taking binary load from my data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my source file I'm trying to achieve section access by loading this USER.qvd and also writing a SQL select statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section Access;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;USERS:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;USERNAME&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ACCESS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;UPPER(CODEID) as CODEID&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ROLENAME;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;From... Extract.qvd&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SQL Select&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;USERNAME&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ACCESS&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;UPPER(CODE_ID) as CODEID&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ROLE_NAME&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;From....&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Section Application;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;So I have a field name CODEID as stored in a different qvd which is BUSINESS.qvd and I made a same table name with same IDs inside CODEID in SQL.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'm trying to match that query with SQL query and apply section access. Can you tell me what wrong I'm doing here?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I also used UPPER(num(CODEID) as CODEID thinking as those are numeric values.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;For now I do not want to use Inline table, just from DB restrictions.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 11:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206935#M877745</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2016-10-20T11:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Security restrictions based on Data Base</title>
      <link>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206936#M877746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now it's my turn to get confused.&lt;/P&gt;&lt;P&gt;My original post was explaining the basic steps to create a simple table, unrelated to Section Access because you first have to get your data right. Only then can you apply section access. If you follow that practice, debugging eventual mistakes will become much easier. Even for me, Section Access never works perfectly the first time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code in Section Access uses the exact same techniques and statements as any other code. If you want to create an authorizations table, composed of rows from a QVD and rows from a SQL Database, do as follows (I'll try to use code from your other post):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Section Access;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CONNECT TO . ... ; //Connect to your SQL database. Omit if the connection is open.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;USERS: // Name doesn't matter&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD USERNAME&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCESS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UPPER(CODEID) as CODEID // This is the actual link field?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ROLENAME // What is this used for?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM Extract.qvd&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CONCATENATE(USERS)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SQL SELECT&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; USERNAME&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCESS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UPPER(CODE_ID) as CODEID&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ROLE_NAME&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM SomeDatabaseTable ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Section Application;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Now check the connected table in Section Application, make sure the proper fields and values are available, and reload this script &lt;EM&gt;in a copy of your original document&lt;/EM&gt;, never in the document itself. Simply because you may risk locking yourself out of your document and you'll need to start over. If you do get errors, or your document doesn't work as expected, please post back to this thread.&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;Another tip: If you didn't understand my explanation the first time, you may be lacking basic scripting skills. I would advise against starting with Section Access before you master regular load script techniques, as Section Access can be one of the most tricky and treacherous parts of QlikView development.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 11:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206936#M877746</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-10-20T11:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Security restrictions based on Data Base</title>
      <link>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206937#M877747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might require to use Section Access &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;Concatenate(T1)&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, Coming to this part&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;I also used UPPER(num(CODEID) as CODEID thinking as those are numeric values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;If you are thinking about Numeric values, Then how numeric values came for UPPER&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Just use Evaluate(Num(CODEIS)) as CODEID&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 11:49:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206937#M877747</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-10-20T11:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Security restrictions based on Data Base</title>
      <link>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206938#M877748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter for clearing.&lt;/P&gt;&lt;P&gt;But when I follow what you've said I'm getting an Error942: Table or view not found in Oracle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have access to that schema and can view the scheme and browse it as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, I want to restrict user based upon CODEID which are assigned to users&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;USER CODEID&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if a user with CODEID 1 logins, he should only view his data. The same CODEID field is in data model. But I'm loading this CODEID from a qvd and not added into Data Model.&lt;/P&gt;&lt;P&gt;Only running this QVD in source qvw &amp;amp; also section access in source file. &lt;/P&gt;&lt;P&gt;I did understand what you told in very first reply and concatenated as well but I was getting this Error message. So I thought it's not working. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 11:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206938#M877748</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2016-10-20T11:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Security restrictions based on Data Base</title>
      <link>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206939#M877749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tired but I get Error 924 Oracle table not found.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 11:59:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206939#M877749</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2016-10-20T11:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Security restrictions based on Data Base</title>
      <link>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206940#M877750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your error points to an Oracle table load malfunctioning, not to Section Access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try by removing or commenting out the Section Access; statement. You will still get the Oracle error, but there will be no mistake as to who is causing problems. The quickest way to get a correct SQL SELECT for an Oracle table in that particular database is to use the Select... button in Script Editor, and let the Wizard assemble the correct SELECT statement for you. Enable the Preceding Load option if you don't feel like renaming your columns in SQL. You can now rename the fields in the preceding load which is a regular QlikView load. &lt;EM&gt;Add the CONCATENATE prefix to the preceding load instead of the SQL Select&lt;/EM&gt; and you should be on your way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this eliminates the error, and produces the expected data, then you can uncomment the Section Access; statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2016 13:46:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Security-restrictions-based-on-Data-Base/m-p/1206940#M877750</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-10-20T13:46:45Z</dc:date>
    </item>
  </channel>
</rss>

