<?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: User does not have SELECT on Table in Databricks Free Edition Help</title>
    <link>https://community.databricks.com/t5/databricks-free-edition-help/user-does-not-have-select-on-table/m-p/132839#M478</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/186194"&gt;@VenT&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Which authentication are you using?&amp;nbsp; Assuming you're using automatic authentication passthrough you need to d&lt;SPAN&gt;eclare resource dependencies when logging the agent, and Databricks automatically provisions, rotates, and manages short-lived credentials when the agent is deployed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/generative-ai/agent-framework/log-agent#authentication-for-databricks-resources" target="_blank"&gt;Log and register AI agents - Azure Databricks | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/generative-ai/agent-framework/agent-authentication#authentication-methods" target="_blank" rel="noopener"&gt;Authentication for AI agents - Azure Databricks | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Sep 2025 13:26:37 GMT</pubDate>
    <dc:creator>szymon_dybczak</dc:creator>
    <dc:date>2025-09-23T13:26:37Z</dc:date>
    <item>
      <title>User does not have SELECT on Table</title>
      <link>https://community.databricks.com/t5/databricks-free-edition-help/user-does-not-have-select-on-table/m-p/132830#M477</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying the Databricks free edition and I used the&amp;nbsp;&lt;STRONG&gt;Build your first AI agent&amp;nbsp;&lt;/STRONG&gt;template.&lt;BR /&gt;I want to save the responses from the chat into a table in the database and I made sure my user has&lt;SPAN&gt;ALL PRIVILEGES assigned for the &amp;lt;catalog&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table-name&amp;gt; that I'm using.&lt;BR /&gt;I added a code that saves the messages into the ChatAgent's predict method:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;df = spark.createDataFrame([content_dicts] if isinstance(content_dicts, dict) else content_dicts)

CATALOG_NAME = "workspace"
SCHEMA_NAME = "default"
        
df.write.mode("append").saveAsTable(f"{CATALOG_NAME}.{SCHEMA_NAME}.responses")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If I run the agent from the notebook - it works and the table is updated, but if I deploy the agent and try to generate some responses - I receive an error "User does not have SELECT on Table"&lt;BR /&gt;I even tried using the databricks SDK to update the permissions runtime:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;x = w.grants.update(
    full_name="workspace.default.responses",
    securable_type="TABLE",
    changes=[
        catalog.PermissionsChange(
            add=[catalog.Privilege.ALL_PRIVILEGES],
            principal=account_level_group_name,
        )
    ],
)&lt;/LI-CODE&gt;&lt;P&gt;No success.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also updated the catalog permissions and granted ALL not only to my user, but to the admin, users and all workspace users groups.&lt;BR /&gt;&lt;BR /&gt;I have only one warehouse - the default serverless that comes with the Free account.&lt;BR /&gt;I tried passing warehouse Id to the deployment config(to make sure the serving uses the same database where I have correct permissions):&lt;BR /&gt;Also tried updating the default warehouse to be the same.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from databricks import agents

deployment_info = agents.deploy(
    model_name=registered_model_name,
    model_version=logged_agent_info.registered_model_version,
    scale_to_zero=True,
    warehouse_id="53047a8915d49294"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 12:33:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/databricks-free-edition-help/user-does-not-have-select-on-table/m-p/132830#M477</guid>
      <dc:creator>VenT</dc:creator>
      <dc:date>2025-09-23T12:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: User does not have SELECT on Table</title>
      <link>https://community.databricks.com/t5/databricks-free-edition-help/user-does-not-have-select-on-table/m-p/132839#M478</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/186194"&gt;@VenT&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Which authentication are you using?&amp;nbsp; Assuming you're using automatic authentication passthrough you need to d&lt;SPAN&gt;eclare resource dependencies when logging the agent, and Databricks automatically provisions, rotates, and manages short-lived credentials when the agent is deployed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/generative-ai/agent-framework/log-agent#authentication-for-databricks-resources" target="_blank"&gt;Log and register AI agents - Azure Databricks | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/generative-ai/agent-framework/agent-authentication#authentication-methods" target="_blank" rel="noopener"&gt;Authentication for AI agents - Azure Databricks | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 13:26:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/databricks-free-edition-help/user-does-not-have-select-on-table/m-p/132839#M478</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-09-23T13:26:37Z</dc:date>
    </item>
  </channel>
</rss>

