<?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 Lakebase branches and permissions to SQL editor in Lakebase Discussions</title>
    <link>https://community.databricks.com/t5/lakebase-discussions/lakebase-branches-and-permissions-to-sql-editor/m-p/150778#M27</link>
    <description>&lt;P&gt;Our admin created a project for lakebase branching. My user has "Can manage" permissions. I can create branches etc, however when I run something in the SQL editor i get following error:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;ERROR: permission denied for schema public (SQLSTATE 42501)&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;CREATE TABLE IF NOT EXISTS &lt;SPAN&gt;p&lt;/SPAN&gt;laying_with_lakebase(id SERIAL PRIMARY KEY, name TEXT NOT NULL, value REAL)&lt;/PRE&gt;&lt;P&gt;Any pointers if this is by design?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Mar 2026 10:32:38 GMT</pubDate>
    <dc:creator>Sega2</dc:creator>
    <dc:date>2026-03-13T10:32:38Z</dc:date>
    <item>
      <title>Lakebase branches and permissions to SQL editor</title>
      <link>https://community.databricks.com/t5/lakebase-discussions/lakebase-branches-and-permissions-to-sql-editor/m-p/150778#M27</link>
      <description>&lt;P&gt;Our admin created a project for lakebase branching. My user has "Can manage" permissions. I can create branches etc, however when I run something in the SQL editor i get following error:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;ERROR: permission denied for schema public (SQLSTATE 42501)&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;CREATE TABLE IF NOT EXISTS &lt;SPAN&gt;p&lt;/SPAN&gt;laying_with_lakebase(id SERIAL PRIMARY KEY, name TEXT NOT NULL, value REAL)&lt;/PRE&gt;&lt;P&gt;Any pointers if this is by design?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2026 10:32:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/lakebase-discussions/lakebase-branches-and-permissions-to-sql-editor/m-p/150778#M27</guid>
      <dc:creator>Sega2</dc:creator>
      <dc:date>2026-03-13T10:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Lakebase branches and permissions to SQL editor</title>
      <link>https://community.databricks.com/t5/lakebase-discussions/lakebase-branches-and-permissions-to-sql-editor/m-p/150801#M28</link>
      <description>&lt;P&gt;Greetings&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/122912"&gt;@Sega2&lt;/a&gt;&amp;nbsp;, I did some digging and here is what I found.&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;Your screenshot (thanks for sharing, it was helpful) is showing a user running a Postgres &lt;SPAN class="s1"&gt;CREATE TABLE&lt;/SPAN&gt; statement in the Lakebase SQL Editor and hitting this error:&lt;/P&gt;
&lt;P class="p1"&gt;In Lakebase, there are currently two separate permission layers at play.&lt;/P&gt;
&lt;P class="p1"&gt;Databricks project permissions such as &lt;SPAN class="s1"&gt;CAN USE&lt;/SPAN&gt; and &lt;SPAN class="s1"&gt;CAN MANAGE&lt;/SPAN&gt; control access to project resources and UI capabilities, including things like branches, computes, and the SQL Editor itself.&lt;/P&gt;
&lt;P class="p1"&gt;Postgres permissions control what the user can actually do inside the database, such as creating tables in a schema.&lt;/P&gt;
&lt;P class="p1"&gt;So, having &lt;SPAN class="s1"&gt;CAN MANAGE&lt;/SPAN&gt; on the project does not automatically grant &lt;SPAN class="s1"&gt;CREATE&lt;/SPAN&gt; privileges on the &lt;SPAN class="s1"&gt;public&lt;/SPAN&gt; schema. The error shown here is coming from Postgres because the role being used in the SQL Editor does not have the required schema-level privileges.&lt;/P&gt;
&lt;P class="p1"&gt;To resolve it, the project owner or database admin should grant the needed access, for example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;GRANT CONNECT ON DATABASE your_db TO "your_user_or_group";
GRANT USAGE, CREATE ON SCHEMA public TO "your_user_or_group";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="p1"&gt;Once those grants are in place, the &lt;SPAN class="s1"&gt;CREATE TABLE&lt;/SPAN&gt; statement should run successfully from the Lakebase SQL Editor.&lt;/P&gt;
&lt;P class="p1"&gt;This aligns with how Lakebase is designed today, where project permissions and in-database Postgres permissions are managed separately.&lt;/P&gt;
&lt;P class="p1"&gt;Hope this helps, Louis.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2026 12:47:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/lakebase-discussions/lakebase-branches-and-permissions-to-sql-editor/m-p/150801#M28</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2026-03-13T12:47:29Z</dc:date>
    </item>
  </channel>
</rss>

