<?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: Section access based on session attributes in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Section-access-based-on-session-attributes/m-p/895375#M12422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to Qlik's support the only information that can be used to implement "Section Access" in Qlik Sense currently is the user's name and group information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We solved this by setting up a ODBC user directory in Qlik and reading the used restrictions from the user attributes table of this directory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2015 09:38:08 GMT</pubDate>
    <dc:creator>daniel_peger</dc:creator>
    <dc:date>2015-07-27T09:38:08Z</dc:date>
    <item>
      <title>Section access based on session attributes</title>
      <link>https://community.qlik.com/t5/App-Development/Section-access-based-on-session-attributes/m-p/895374#M12421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm wondering if it is possible in Qlik Sense to use section access based on a user's session attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are currently using session attributes in Qlik Sense to grant user access to certain streams by attaching a corresponding security rule to the stream:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #444444; font-size: 10.6666669845581px; font-family: 'Lucida Console', Monaco, monospace;"&gt;&lt;EM&gt;(user.environment.applicationId="my1stQlikApplication")&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;By using the &lt;/SPAN&gt;&lt;A href="http://help.qlik.com/sense/1.0/en-us/developer/#../Subsystems/Qlik_Sense_Proxy_Service_API/Content/QPS API/Proxy_REST_API_Session_Module_REST_API_Session_Add.htm%3FTocPath%3DQlik%2520Sense%2520Proxy%2520Service%2520API%7CSession%2520module%2520API%7CSession%7C_____1"&gt;QPS addSession method&lt;/A&gt; one can attach arbitrary attributes to a user session:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; font-family: 'courier new', courier;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="; color: #444444; font-size: 10.6666669845581px; font-family: 'Lucida Console', Monaco, monospace;"&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="; color: #444444; font-size: 10.6666669845581px; font-family: 'Lucida Console', Monaco, monospace;"&gt;&lt;EM&gt;"UserDirectory": "QLIK",&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="; color: #444444; font-size: 10.6666669845581px; font-family: 'Lucida Console', Monaco, monospace;"&gt;&lt;EM&gt;"UserId": "someUser",&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="; color: #444444; font-size: 10.6666669845581px; font-family: 'Lucida Console', Monaco, monospace;"&gt;&lt;EM&gt;"Attributes": [ { "applicationId": "my1stQlikApplication" }, &lt;SPAN style="; color: #444444; font-size: 10.6666669845581px; font-family: 'Lucida Console', Monaco, monospace;"&gt;&lt;EM&gt;{ "applicationId": "&lt;SPAN style="; color: #444444; font-size: 10.6666669845581px; font-family: 'Lucida Console', Monaco, monospace;"&gt;&lt;EM&gt;my2ndQlikApplication&lt;/EM&gt;&lt;/SPAN&gt;" }, ...&lt;/EM&gt;&lt;/SPAN&gt; ],&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="; color: #444444; font-size: 10.6666669845581px; font-family: 'Lucida Console', Monaco, monospace;"&gt;&lt;EM&gt;"SessionId": "random UUID"&lt;BR /&gt;}&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #444444; font-size: 10.6666669845581px; font-family: 'Lucida Console', Monaco, monospace;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;Given the above addSession-Request the user QLIK\someUser would be able to access a stream with the mentioned security rule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to evaluate these session attributes in an application's load script (i.e. to implement row level security using section access)? And if 'yes', how?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 11:21:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Section-access-based-on-session-attributes/m-p/895374#M12421</guid>
      <dc:creator>daniel_peger</dc:creator>
      <dc:date>2015-05-07T11:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Section access based on session attributes</title>
      <link>https://community.qlik.com/t5/App-Development/Section-access-based-on-session-attributes/m-p/895375#M12422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to Qlik's support the only information that can be used to implement "Section Access" in Qlik Sense currently is the user's name and group information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We solved this by setting up a ODBC user directory in Qlik and reading the used restrictions from the user attributes table of this directory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 09:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Section-access-based-on-session-attributes/m-p/895375#M12422</guid>
      <dc:creator>daniel_peger</dc:creator>
      <dc:date>2015-07-27T09:38:08Z</dc:date>
    </item>
  </channel>
</rss>

