Hi @drii_cavalcanti, The error you're encountering is related to the new USAGE privilege that is enforced on Databricks clusters running Databricks Runtime 7.3 LTS and above. This privilege is required to access an object in the database. To resolve this issue, you need to grant the USAGE privilege to your user. You can do this by logging into the workspace as an admin user, opening a notebook, and running the following command:
sql
GRANT USAGE ON DATABASE <databasename> TO <user-group>;
Replace <databasename>
with the name of your database and <user-group>
with your user or group name.If this doesn't solve your issue, you may need to check if the workspace has Unity Catalog metastore attached and if the cluster has UC-supported cluster access modes (shared/single user). Also, ensure that you are using Databricks Runtime (DBR) version 10.4 or higher. Also, please note that you need to have the USE CATALOG
permission on the main
catalog by default and CREATE TABLE
permission on the schema you're using.