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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
mathsab
Regular Visitor

REST API and Object Level Security

Hello,

I have a problem concerning the Power BI REST API and OLS security.

I'm using the REST API with a Service Principal, in particular the “GetScanResult” call I get metadata that I exploit to make documentation.

In particular, I obtain dataset metadata with the list of tables and their description, the list of columns and their description, and the list of measures and their description.

This works perfectly except for one dataset, where an OLS security is applied. This completely blocks the extraction of the metadata mentioned.

I've tried several solutions, such as integrating the Service Principal into a Workspace Administrator role, or integrating the Service Principal into a "full access" OLS security role, but the metadata still won't come up.

Have you encountered this before? Does anyone have a solution?

Thanks for your help!

1 ACCEPTED SOLUTION
v-achippa
Community Support
Community Support

Hi @mathsab,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Power BI enforces OLS at the engine level, when metadata is requested through APIs, OLS hides metadata from all users including Service Principals. So even there is admin or scan level access OLS still applies. Currently there is no way to skip OLS via the API, even with full workspace or dataset level permissions. At this time this is a known limitation with the security and data protection model, so please follow below steps:

  • Temporarily disable OLS during the metadata scan, if the security policy allows.
  • Create a duplicate of the dataset without OLS for documentation purposes.

 

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

View solution in original post

1 REPLY 1
v-achippa
Community Support
Community Support

Hi @mathsab,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Power BI enforces OLS at the engine level, when metadata is requested through APIs, OLS hides metadata from all users including Service Principals. So even there is admin or scan level access OLS still applies. Currently there is no way to skip OLS via the API, even with full workspace or dataset level permissions. At this time this is a known limitation with the security and data protection model, so please follow below steps:

  • Temporarily disable OLS during the metadata scan, if the security policy allows.
  • Create a duplicate of the dataset without OLS for documentation purposes.

 

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

 

Thanks and regards,

Anjan Kumar Chippa

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.