<?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 Retrieve current user group in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Retrieve-current-user-group/m-p/1819915#M1213363</link>
    <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;I made a section access to limit some visualizations and data access to the users in the group USER and give the full data access to the user in the group ADMIN&lt;/P&gt;&lt;P&gt;The section access is like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Section Access;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ACCESS, USERID, PASSWORD, OMIT&lt;/P&gt;&lt;P&gt;ADMIN, ADMIN, 874524, ''&lt;/P&gt;&lt;P&gt;ADMIN, NICK, 512476, ''&lt;/P&gt;&lt;P&gt;ADMIN, JOHN, 541368, ''&lt;/P&gt;&lt;P&gt;USER, GEORGE, 877542, ''&lt;/P&gt;&lt;P&gt;USER, MICHAEL, 478142, ''];&lt;/P&gt;&lt;P&gt;I'd like to make the configuration by using the groups (ADMIN and USER) instead of user-by-user with the function qvUser(), but I'm not able to find the function to get the group.&lt;/P&gt;&lt;P&gt;Could someone help me, please?&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;Nick.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jul 2021 19:25:06 GMT</pubDate>
    <dc:creator>NickP_DF</dc:creator>
    <dc:date>2021-07-05T19:25:06Z</dc:date>
    <item>
      <title>Retrieve current user group</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-current-user-group/m-p/1819915#M1213363</link>
      <description>&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;I made a section access to limit some visualizations and data access to the users in the group USER and give the full data access to the user in the group ADMIN&lt;/P&gt;&lt;P&gt;The section access is like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Section Access;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ACCESS, USERID, PASSWORD, OMIT&lt;/P&gt;&lt;P&gt;ADMIN, ADMIN, 874524, ''&lt;/P&gt;&lt;P&gt;ADMIN, NICK, 512476, ''&lt;/P&gt;&lt;P&gt;ADMIN, JOHN, 541368, ''&lt;/P&gt;&lt;P&gt;USER, GEORGE, 877542, ''&lt;/P&gt;&lt;P&gt;USER, MICHAEL, 478142, ''];&lt;/P&gt;&lt;P&gt;I'd like to make the configuration by using the groups (ADMIN and USER) instead of user-by-user with the function qvUser(), but I'm not able to find the function to get the group.&lt;/P&gt;&lt;P&gt;Could someone help me, please?&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;Nick.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 19:25:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-current-user-group/m-p/1819915#M1213363</guid>
      <dc:creator>NickP_DF</dc:creator>
      <dc:date>2021-07-05T19:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve current user group</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-current-user-group/m-p/1820035#M1213383</link>
      <description>&lt;P&gt;Hi Nick&lt;/P&gt;&lt;P&gt;Section access can actually be linked to the main data, this is actually one of the cool features&amp;nbsp; and extremely powerful! It means you can set which subset of data that the users can see.&lt;/P&gt;&lt;P&gt;In this instance, we can use it to link the user to a stand alone table with the groups, and use this standalone table to retrieve the group&lt;/P&gt;&lt;P&gt;In the load, instead of loading directly into section access we can use a temporary table to create both the standalone table and the main section access table. In both, I have added a key field which links the two.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;tmp_SA:&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;LOAD *,&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Rowno() AS SA_LINK;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;ACCESS, USERID, PASSWORD, OMIT&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;ADMIN, ADMIN, 874524, ''&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;ADMIN, NICK, 512476, ''&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;.];&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;SA_Dim:&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;LOAD Distinct &lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;SA_LINK,&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;ACCESS&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;RESIDENT tmp_SA;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;SECTION ACCESS;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;NoConcatenate LOAD * RESIDENT tmp_SA;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;SECTION APPLICATION;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;DROP TABLE tmp_SA;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What you will then need to do in the document properties is check the section access reduction option and this will reduce our stand alone table to the single row for each user when they log into the application&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PiEye_0-1625564885577.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58080iB5F5880DB54225E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PiEye_0-1625564885577.png" alt="PiEye_0-1625564885577.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this work for you?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 09:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-current-user-group/m-p/1820035#M1213383</guid>
      <dc:creator>PiEye</dc:creator>
      <dc:date>2021-07-06T09:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve current user group</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-current-user-group/m-p/1820046#M1213386</link>
      <description>&lt;P&gt;Hello PiEye,&lt;/P&gt;&lt;P&gt;first of all, thank you for the reply; I assume that your suggestion will surely work, but it's a bit sophisticated...I'll keep it as a B-plane if there isn't a simpler way to get what I need (it seems very strange to me that there isn't a simple function like qvUser() to get the group instead of the user): am I a dreamer? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Bye.&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 10:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-current-user-group/m-p/1820046#M1213386</guid>
      <dc:creator>NickP_DF</dc:creator>
      <dc:date>2021-07-06T10:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve current user group</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-current-user-group/m-p/1820055#M1213387</link>
      <description>&lt;P&gt;Unfortunately there isn't, it would likely be listed here if it was&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/SystemFunctions/system-functions.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/SystemFunctions/system-functions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A simpler alternative might be to create a replica of the section access table in the front end.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could then put osuser() into a variable and use that value to get the related group:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Replica table in front end:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PiEye_0-1625566021721.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58085i16B631BB5B3CE19F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PiEye_0-1625566021721.png" alt="PiEye_0-1625566021721.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Function returning the group:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=only({&amp;lt;USERID={"$(vUser)"}&amp;gt;} ACCESS&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This is where I have set vUser =OSUser() in the variables dialogue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 10:09:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-current-user-group/m-p/1820055#M1213387</guid>
      <dc:creator>PiEye</dc:creator>
      <dc:date>2021-07-06T10:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve current user group</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-current-user-group/m-p/1820164#M1213399</link>
      <description>&lt;P&gt;Hi Pi,&lt;/P&gt;&lt;P&gt;thank you for this solution; it's simpler than the previous one, and I'll proceed with it.&lt;/P&gt;&lt;P&gt;See you soon.&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 16:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-current-user-group/m-p/1820164#M1213399</guid>
      <dc:creator>NickP_DF</dc:creator>
      <dc:date>2021-07-06T16:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve current user group</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-current-user-group/m-p/1820310#M1213412</link>
      <description>&lt;P&gt;Great &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 07:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-current-user-group/m-p/1820310#M1213412</guid>
      <dc:creator>PiEye</dc:creator>
      <dc:date>2021-07-07T07:59:03Z</dc:date>
    </item>
  </channel>
</rss>

