How can we access table data using a SQL Endpoint with a user's token? #62
-
I am trying to access table data through the "SQL Endpoint" using a user's token. I initially used the Service Principal Details to generate an access token with the scope https://database.windows.net/.default. However, I encountered a limitation where the service principal needs to be added as a member of each workspace that the user wants to connect to. I then attempted to use "GetAccessTokenOnBehalfOf" with the following scopes, which I verified with the token, but encountered an error: 'Login failed due to invalid authentication methods.'. The scopes I used were: Lakehouse.ReadWrite.All Despite these efforts, the issue persists. Does anyone have insights on how to resolve this or alternative approaches to access table data using a user's token? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hello,
|
Beta Was this translation helpful? Give feedback.
-
Why do they need to provision Azure SQL Database, they are trying to use the SQL Endpoint of the Lakehouse. |
Beta Was this translation helpful? Give feedback.
Hello,
Firstly, you may find some useful information in this doc: Working with customer data
The approach here described here can be summarized as follows: