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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
alfBI
Resolver I
Resolver I

Granular access to specific objects within the Warehouse does not work using Power Desktop

Hi,

 

We have a Warehouse where we want to restrict access to certain tables when users connect to its SQL End Point. We followed the steps described here

 

https://learn.microsoft.com/en-us/fabric/data-warehouse/share-warehouse-manage-permissions

 

first providing "Read" role to user on the Warehouse

 

alfBI_0-1750263160406.png

and then assigning specific granular rights using T-SQL as follows

 

GRANT SELECT ON Star.COM.DimOBS TO [pbi-test@XXXX];
GO

 

 

Following query confirm provided rights to user

 

alfBI_1-1750263256420.png

 

when connecting to the WH SQL Endpoint thinks works as expected

 

alfBI_2-1750263297354.png

 

 

only the object with assigned rights is visible, but the problem appears when using the same account we use power BI Desktop and we connect to the Warehouse SQL Endpoint

 

 

alfBI_3-1750263373914.png

 

 

Then surpreisingly all the tables of the WH are visible 😞

 

 

alfBI_4-1750263403655.png

 

 

Why using SQL Endpoint with PBI Desktop OLS (Object Level Security) does not apply? It's a limitation or a bug?

 

 

Regards,

 

Alfons

5 REPLIES 5
NandanHegde
Super User
Super User

Please follow the below steps  :

My source Warehouse :

NandanHegde_0-1750386194995.png

 

 

Share the warehoue with the user to grant him/her connect access by disabling all features:

NandanHegde_1-1750386297421.png

 

Then login to Warehouse and execute the below queries :

GRANT SELECT ON <<TableNme>> TO [<<user@domain.com>>];
 
Post that only specific objects are visible:
NandanHegde_2-1750386405821.png

 




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com
v-lgarikapat
Community Support
Community Support

Hi @alfBI ,

 

Thanks for reaching out to the Microsoft fabric community forum.

OLS is enforced within the semantic model in Power BI meaning it works when users interact with reports or datasets published to the Power BI Service. However, when you connect to a Warehouse SQL Endpoint using Power BI Desktop , you're bypassing the semantic model and directly querying the underlying data source


Below are the few work arrounds

If you need to enforce table-level restrictions when users connect via SQL Endpoint

  • Continue using T-SQL GRANT/DENY statements for access control.
  • Consider using Row-Level Security (RLS) or OLS within the semantic model for Power BI reports.
  • If security is a major concern, you might explore private endpoints and network-level restrictions to limit SQL access paths.

Solved: Re: Fabric SQL Analytics Endpoint to Power BI Desk... - Microsoft Fabric Community

Object-Level Security (OLS) with Power BI - Microsoft Fabric | Microsoft Learn

Develop Direct Lake semantic models - Microsoft Fabric | Microsoft Learn

Solved: Re: RLS/OLS role effect on Co Pilot Q&A - Microsoft Fabric Community

Solved: Power BI Service RLS/OLS to semantic model - Microsoft Fabric Community

 

If this post helped resolve your issue, please consider the Accepted Solution. This not only acknowledges the support provided but also helps other community members find relevant solutions more easily.

We appreciate your engagement and thank you for being an active part of the community.

Best regards,
LakshmiNarayana
.

Ho v-lgarikapat,

 

Sorry, I use the word OLS erroneously.

 

Our aim is to prevent that a power BI desktop user might access certain tables of the warehouse when implementing a new semantic model using the warehouse sql end point.

 

We tried to do it exactly what do you mention (using T-SQL GRANT/DENY statements for access control), but it seems not to work (see above screenshots). 

 

Any idea about it does not work as expected?

 


 
 
 

Hi @alfBI ,
Thank you for your follow-up question.

@NandanHegde,
Appreciate your prompt and detailed response.

@alfBI when you get a chance, could you please try the solution shared by @NandanHegde ? It outlines a clear step-by-step approach that may help resolve the issue.

If you continue to experience any difficulties, please don’t hesitate to reach out. We're happy to support you further.

Looking forward to your feedback.

Reference:

Lakehouse sharing and permission management - Microsoft Fabric | Microsoft Learn

Best regards,
LakshmiNarayana

Hi @alfBI ,

 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please "Accept as Solution"

 

Best regards,
LakshmiNarayana
.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

May FBC25 Carousel

Fabric Monthly Update - May 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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