Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
TePe
Helper IV
Helper IV

Sharing Lakehouse Table via SPN - How to test

Hi,

I need to share a single table from a Lakehouse via SQL endpoint with an external process. This should be done via a SPN (Service Principal) because we can't handle MFA etc. in this scenario.

So I created a SPN in Entra (AD), shared the Lakehouse, granted access to the table. So in theory I should be done. However, I'd like to test the access before I give it to the external party. Any idea how I can do it? I tried to connect to the SQL Endpoint using SSMS and the SPN credentials, it fails already when I try to connect to the Lakehouse, the login name (name of the SPN, tested it with and without @domain) wasn't found. Tried it with Power BI, same effect.

Any clue how I can test it?

 

Thanks.... 

3 REPLIES 3
TePe
Helper IV
Helper IV

Hi,

 

so what I did: I got into Entra ID, created the SPN and assigned a credential. Nothing else. 
Then I got into Fabric, shared the Lakehouse with the SPN without any special permissions, no checkmarks set here. This should give me access via SQL Endpoint only.

Finally I granted access to the table using a "GRAND SELECT ON table TO spn".

Now the question is how I can connect and check that everything is running... For that I got the URL of the SQL Endpoint from the Lakehouse settings and tried to connect with SSMS and Power BI without any luck, yet...

 

THANKS for your support!

Anonymous
Not applicable

Hi @TePe 

 

Have you set any roles for your Service Principal?

 

Best Regards,
Yulia Xu

...in other words: @Anonymous What roles should I set and how?

 

Thanks,

 

 

Thomas

Helpful resources

Announcements
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors