cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

User not authorised to copy files to dbfs

curiousoctopus
New Contributor II

Hi,

I'm trying to use a service principal to copy files to dbfs using the command line "databricks fs cp <source> <target>" but get back "User not authorised". I configured the authentication with PAT token and it is successful as I can deploy and launch jobs. My service principal is in a group with the following entitlements:

- Workspace access
- Databricks SQL access
- Allow unrestricted cluster creation
- allow-instance-pool-create
 
What permissions am I missing to copy files to dbfs?
1 REPLY 1

Walter_C
Honored Contributor
Honored Contributor

In Databricks, data access permissions are often managed separately from workspace permissions. For DBFS, access control is typically managed through the underlying cloud storage (Azure Blob Storage, S3, etc.). The service principal needs to have the necessary permissions on the underlying storage to read, write, or delete data.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!