<?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 PostgreSQL query to see users and apps they have access to in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/PostgreSQL-query-to-see-users-and-apps-they-have-access-to/m-p/1753327#M16791</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm working on developing a new security rules set for my Qlik Sense environment and wanted to get a list of users and apps they currently have access to. I tried using Audit section of QMC, but it doesn't give me exactly what I need. I would like to get a table with the following columns:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;User ID&lt;/LI&gt;&lt;LI&gt;Stream Name&lt;/LI&gt;&lt;LI&gt;App Name&lt;/LI&gt;&lt;LI&gt;Sheet Name&lt;/LI&gt;&lt;LI&gt;User Access Privilege&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have access to PostgreSQL and I dug through tables of &lt;STRONG&gt;public&lt;/STRONG&gt; schema that's in &lt;STRONG&gt;QSR&lt;/STRONG&gt; database and found &lt;STRONG&gt;Users&lt;/STRONG&gt;, &lt;STRONG&gt;Streams&lt;/STRONG&gt;, &lt;STRONG&gt;Apps&lt;/STRONG&gt; and &lt;STRONG&gt;AppObjects&lt;/STRONG&gt; tables so I can get Stream Name, App Name, Sheet Name and a list of users, but &lt;STRONG&gt;I'm struggling to find a way to connect users to apps they have visibility into as well types of privileges they have for each app&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Does anyone have a query handy that I can use for that? Or maybe not the query, but if you can point me to at least the right database and table(s) that I can read from to get list of users and apps they have access to, that'll be helpful as well.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Mikhail B.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:17:08 GMT</pubDate>
    <dc:creator>mbespartochnyy</dc:creator>
    <dc:date>2024-11-16T01:17:08Z</dc:date>
    <item>
      <title>PostgreSQL query to see users and apps they have access to</title>
      <link>https://community.qlik.com/t5/Management-Governance/PostgreSQL-query-to-see-users-and-apps-they-have-access-to/m-p/1753327#M16791</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm working on developing a new security rules set for my Qlik Sense environment and wanted to get a list of users and apps they currently have access to. I tried using Audit section of QMC, but it doesn't give me exactly what I need. I would like to get a table with the following columns:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;User ID&lt;/LI&gt;&lt;LI&gt;Stream Name&lt;/LI&gt;&lt;LI&gt;App Name&lt;/LI&gt;&lt;LI&gt;Sheet Name&lt;/LI&gt;&lt;LI&gt;User Access Privilege&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have access to PostgreSQL and I dug through tables of &lt;STRONG&gt;public&lt;/STRONG&gt; schema that's in &lt;STRONG&gt;QSR&lt;/STRONG&gt; database and found &lt;STRONG&gt;Users&lt;/STRONG&gt;, &lt;STRONG&gt;Streams&lt;/STRONG&gt;, &lt;STRONG&gt;Apps&lt;/STRONG&gt; and &lt;STRONG&gt;AppObjects&lt;/STRONG&gt; tables so I can get Stream Name, App Name, Sheet Name and a list of users, but &lt;STRONG&gt;I'm struggling to find a way to connect users to apps they have visibility into as well types of privileges they have for each app&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Does anyone have a query handy that I can use for that? Or maybe not the query, but if you can point me to at least the right database and table(s) that I can read from to get list of users and apps they have access to, that'll be helpful as well.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Mikhail B.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/PostgreSQL-query-to-see-users-and-apps-they-have-access-to/m-p/1753327#M16791</guid>
      <dc:creator>mbespartochnyy</dc:creator>
      <dc:date>2024-11-16T01:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL query to see users and apps they have access to</title>
      <link>https://community.qlik.com/t5/Management-Governance/PostgreSQL-query-to-see-users-and-apps-they-have-access-to/m-p/2502914#M28708</link>
      <description>&lt;P&gt;Hi maybe this might be helpful:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;To view the users and the apps they have access to in Qlik Sense, you can query the PostgreSQL database that stores the repository data. The relevant tables are:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;"Users" table: Contains user information like user IDs and names.&lt;/LI&gt;
&lt;LI&gt;"SystemResources" table: Contains information about apps and other resources.&lt;/LI&gt;
&lt;LI&gt;"SystemResourcesAudit" table: Stores access rights for users on different resources.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;You can join these tables to retrieve the desired information. For example:&lt;/P&gt;
&lt;P&gt;SELECT u.Name AS UserName, sr.Name AS AppName FROM Users u JOIN SystemResourcesAudit sra ON u.Id = sra.ModifiedByUserId JOIN SystemResources sr ON sra.ResourceId = sr.Id WHERE sr.ResourceType = 'App';&lt;/P&gt;
&lt;P&gt;This query may return the username and the app name for each user that has access to apps in the Qlik Sense environment.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 20:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/PostgreSQL-query-to-see-users-and-apps-they-have-access-to/m-p/2502914#M28708</guid>
      <dc:creator>Alan_Slaughter</dc:creator>
      <dc:date>2025-01-24T20:22:26Z</dc:date>
    </item>
  </channel>
</rss>

