<?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 How to filter data based on logged in user? [Qlik Sense + Geo analytic] in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-filter-data-based-on-logged-in-user-Qlik-Sense-Geo/m-p/1460191#M3377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are loading data in our Qlik app through load script. Please find the sample tables scripts for reference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Geo Table Script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="GeoTableScript.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/189252_GeoTableScript.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;User Table Script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;IMG alt="UserTableScript.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/189253_UserTableScript.PNG" style="height: auto;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;User Permission Table Script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;IMG alt="UserPermissionTableScript.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/189255_UserPermissionTableScript.PNG" style="height: auto;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;STAR Schema as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Geo Table [Geo.Id] &lt;STRONG style="color: #ff6600;"&gt;------------&lt;/STRONG&gt; User Permission Table [Geo.Id]&lt;STRONG style="color: #ff6600;"&gt;------------&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;User Permission Table [Users.Id]&lt;STRONG style="color: #ff6600;"&gt;------------&lt;/STRONG&gt;Users Table [Users.Id]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Sample data of above tables:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;IMG alt="Data Shot.png" class="image-4 jive-image" src="/legacyfs/online/189256_Data Shot.png" style="height: 453px; width: 620px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now above script should run on some conditions like basis on logged in user access.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Let's say &lt;STRONG&gt;User1&lt;/STRONG&gt; is accessing my app, as we have User1 in User Data.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. How to get logged in user details (username).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have tried using &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;OSUser() &lt;/STRONG&gt; and&lt;STRONG&gt; QVUser() &lt;/STRONG&gt;but that is giving me &lt;STRONG&gt;Person/Me.&lt;/STRONG&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: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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: 13px;"&gt;I am expecting 'User1'.&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: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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: 13px;"&gt;&lt;STRONG&gt;2. Once I got this logged in user details, I am trying to apply below condition in my script:&lt;/STRONG&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: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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: 13px;"&gt;SET vLoggedInUserEnterpriseId = $(QVUser); //assuming that it will give User1, looking for solution&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now in user script I am planning to change query like:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="UserDataSCript.PNG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/189260_UserDataSCript.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that above condition is returning me only those Geos which are accessible to User1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If I am implementing this scenario then it will not give exact solution, how to load data for each user if we place such conditions in script.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Anyone know what is the best approach to achieve such a scenario? Any other way through which i can get logged in user related data. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there any way where do not need to pass above condition in script and we can achieve our result.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Dilip Solanki&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jan 2018 10:30:08 GMT</pubDate>
    <dc:creator>dilip1234</dc:creator>
    <dc:date>2018-01-08T10:30:08Z</dc:date>
    <item>
      <title>How to filter data based on logged in user? [Qlik Sense + Geo analytic]</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-filter-data-based-on-logged-in-user-Qlik-Sense-Geo/m-p/1460191#M3377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are loading data in our Qlik app through load script. Please find the sample tables scripts for reference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Geo Table Script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="GeoTableScript.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/189252_GeoTableScript.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;User Table Script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;IMG alt="UserTableScript.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/189253_UserTableScript.PNG" style="height: auto;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;User Permission Table Script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;IMG alt="UserPermissionTableScript.PNG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/189255_UserPermissionTableScript.PNG" style="height: auto;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;STAR Schema as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Geo Table [Geo.Id] &lt;STRONG style="color: #ff6600;"&gt;------------&lt;/STRONG&gt; User Permission Table [Geo.Id]&lt;STRONG style="color: #ff6600;"&gt;------------&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;User Permission Table [Users.Id]&lt;STRONG style="color: #ff6600;"&gt;------------&lt;/STRONG&gt;Users Table [Users.Id]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Sample data of above tables:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;IMG alt="Data Shot.png" class="image-4 jive-image" src="/legacyfs/online/189256_Data Shot.png" style="height: 453px; width: 620px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now above script should run on some conditions like basis on logged in user access.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Let's say &lt;STRONG&gt;User1&lt;/STRONG&gt; is accessing my app, as we have User1 in User Data.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. How to get logged in user details (username).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have tried using &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;OSUser() &lt;/STRONG&gt; and&lt;STRONG&gt; QVUser() &lt;/STRONG&gt;but that is giving me &lt;STRONG&gt;Person/Me.&lt;/STRONG&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: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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: 13px;"&gt;I am expecting 'User1'.&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: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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: 13px;"&gt;&lt;STRONG&gt;2. Once I got this logged in user details, I am trying to apply below condition in my script:&lt;/STRONG&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: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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: 13px;"&gt;SET vLoggedInUserEnterpriseId = $(QVUser); //assuming that it will give User1, looking for solution&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now in user script I am planning to change query like:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="UserDataSCript.PNG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/189260_UserDataSCript.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that above condition is returning me only those Geos which are accessible to User1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If I am implementing this scenario then it will not give exact solution, how to load data for each user if we place such conditions in script.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Anyone know what is the best approach to achieve such a scenario? Any other way through which i can get logged in user related data. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there any way where do not need to pass above condition in script and we can achieve our result.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Dilip Solanki&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 10:30:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-filter-data-based-on-logged-in-user-Qlik-Sense-Geo/m-p/1460191#M3377</guid>
      <dc:creator>dilip1234</dc:creator>
      <dc:date>2018-01-08T10:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter data based on logged in user? [Qlik Sense + Geo analytic]</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-filter-data-based-on-logged-in-user-Qlik-Sense-Geo/m-p/1460192#M3378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dilip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use "section access" to make it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/sense/November2017/Subsystems/Hub/Content/Scripting/Security/manage-security-with-section-access.htm" title="http://help.qlik.com/en-US/sense/November2017/Subsystems/Hub/Content/Scripting/Security/manage-security-with-section-access.htm"&gt;Managing security with section access ‒ Qlik Sense&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 10:48:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/How-to-filter-data-based-on-logged-in-user-Qlik-Sense-Geo/m-p/1460192#M3378</guid>
      <dc:creator>kaanerisen</dc:creator>
      <dc:date>2018-01-08T10:48:15Z</dc:date>
    </item>
  </channel>
</rss>

