cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
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
Valued Contributor II
Valued Contributor II

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.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.