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: 

Databricks Apps

MarcusC
New Contributor III

I've created a Databricks App that is essentially a REST Api in Flask. It returns a json object. Data is in sql-warehouse. It works when calling directly in browser but I want to access it with rest api and Bearer token. But when I login with a service principal and get the access token from Azure I cannot access it. Databricks returns a 401.

With the same token I can call  /api/2.1/jobs/runs/list so db recognize the user.

2 REPLIES 2

Walter_C
Databricks Employee
Databricks Employee

Does the Service Principal has permission access to all the resources involved within you app?

MarcusC
New Contributor III

It has "sql access" and "workspace access". Perhaps I have look at the schema as well

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now