<?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>idea PostGIS - access group-owned tables in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/postgis-access-group-owned-tables/idi-p/922891</link>
    <description>&lt;P&gt;ArcGIS cannot read tables that are owned by a PostgreSQL role without login permissions.&lt;/P&gt;&lt;P&gt;When I change the owner of my tables from our admin group&amp;nbsp;to any login name instead, the tables work fine in ArcMap/ArcCatalog.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My theory:&lt;/P&gt;&lt;P&gt;In the PostgreSQL 8.x era, there were "users" and "groups".&lt;/P&gt;&lt;P&gt;Now there are just "roles." "User" is just an alias for a role granted login permission, and "group" is an alias for a role without that permission.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure why ArcGIS needs to access the list of users in order to display any table [1], but whenever trying to use a table owned by a group-type role,&amp;nbsp;in ArcGIS 10.3, the table disappears from the Catalog list, while in 10.4 it appears, but double-clicking on it throws a "DBMS table not found" error.&lt;/P&gt;&lt;P&gt;I think if ESRI looks in their code for the "pg_users" system table and replaces it with the newer "pg_roles" table,&amp;nbsp;the problem might be fixed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: this is a &lt;STRONG&gt;very&lt;/STRONG&gt; difficult issue to track down. If it's too expensive to fix, then the problem should at least be added to the ArcGIS documentation somewhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lets say we have an admin group - "our_superusers", of which a login "bob_smith" is a member. We have a read-only group&amp;nbsp;for our client, "client_readers", with a member "client_jim_bob".&lt;/P&gt;&lt;P&gt;We've&amp;nbsp;shared the deliverables schema and all the tables in it with "client_readers", because we want all the client logins to see all the tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When they can't see it, it's &lt;STRONG&gt;super-not-intuitive&lt;/STRONG&gt; that setting the owner of all of those objects to be "bob_smith" is the thing that will finally allow "client_jim_bob" to see it!&lt;/P&gt;&lt;P&gt;(owner="client_jim_bob" would also work, but then it can't be read-only access. The trick is to set ownership to ANY role with a login permission that you can trust with full access. (or I suppose you could grant log-in permission to the "our_superusers" role, but that just seems&amp;nbsp;wrong))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[1] An alternate title for this idea might be "You're overthinking it! Don't query the list of database users and try to infer what you should see, just ask the database for a list of things,&amp;nbsp;like a normal database client. Postgres will tell you what you can see, by showing it to you!"&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 23:33:44 GMT</pubDate>
    <dc:creator>BrianFreed1</dc:creator>
    <dc:date>2024-07-09T23:33:44Z</dc:date>
    <item>
      <title>PostGIS - access group-owned tables</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/postgis-access-group-owned-tables/idi-p/922891</link>
      <description>&lt;P&gt;ArcGIS cannot read tables that are owned by a PostgreSQL role without login permissions.&lt;/P&gt;&lt;P&gt;When I change the owner of my tables from our admin group&amp;nbsp;to any login name instead, the tables work fine in ArcMap/ArcCatalog.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My theory:&lt;/P&gt;&lt;P&gt;In the PostgreSQL 8.x era, there were "users" and "groups".&lt;/P&gt;&lt;P&gt;Now there are just "roles." "User" is just an alias for a role granted login permission, and "group" is an alias for a role without that permission.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure why ArcGIS needs to access the list of users in order to display any table [1], but whenever trying to use a table owned by a group-type role,&amp;nbsp;in ArcGIS 10.3, the table disappears from the Catalog list, while in 10.4 it appears, but double-clicking on it throws a "DBMS table not found" error.&lt;/P&gt;&lt;P&gt;I think if ESRI looks in their code for the "pg_users" system table and replaces it with the newer "pg_roles" table,&amp;nbsp;the problem might be fixed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: this is a &lt;STRONG&gt;very&lt;/STRONG&gt; difficult issue to track down. If it's too expensive to fix, then the problem should at least be added to the ArcGIS documentation somewhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lets say we have an admin group - "our_superusers", of which a login "bob_smith" is a member. We have a read-only group&amp;nbsp;for our client, "client_readers", with a member "client_jim_bob".&lt;/P&gt;&lt;P&gt;We've&amp;nbsp;shared the deliverables schema and all the tables in it with "client_readers", because we want all the client logins to see all the tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When they can't see it, it's &lt;STRONG&gt;super-not-intuitive&lt;/STRONG&gt; that setting the owner of all of those objects to be "bob_smith" is the thing that will finally allow "client_jim_bob" to see it!&lt;/P&gt;&lt;P&gt;(owner="client_jim_bob" would also work, but then it can't be read-only access. The trick is to set ownership to ANY role with a login permission that you can trust with full access. (or I suppose you could grant log-in permission to the "our_superusers" role, but that just seems&amp;nbsp;wrong))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[1] An alternate title for this idea might be "You're overthinking it! Don't query the list of database users and try to infer what you should see, just ask the database for a list of things,&amp;nbsp;like a normal database client. Postgres will tell you what you can see, by showing it to you!"&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 23:33:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/postgis-access-group-owned-tables/idi-p/922891</guid>
      <dc:creator>BrianFreed1</dc:creator>
      <dc:date>2024-07-09T23:33:44Z</dc:date>
    </item>
  </channel>
</rss>

