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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
somewhereels
Frequent Visitor

Onelake file access API

Hi All,

 

Wondering if anyonce can help me. I'm very new to using Fabric and APIs in general. I have a file stored in one lake that I would like to access using an API. I've been following Microsofts guide here https://learn.microsoft.com/en-us/fabric/onelake/onelake-access-api#onelake-and-adls-gen2-parity but no luck. I'm able to successfully use the same access token endpoint/client id/client_secret to access a file stored in traditional data lake gen 2 blob storage but as soon as I try and use onelake it gives me this error "User is not authorized to perform current operation for workspace ABC and artifact XYZ".

 

I've got my admin to enable the setting in the workspace that says users can access onelake outside of the workspace. What else am I missing?

 

1 REPLY 1
Anonymous
Not applicable

Hi  @somewhereels ,

 

Make sure that the account you are using has the necessary permissions for the specific workspace and project you are accessing, you can check the permissions for the workspace and semantic models by following the link below.

Roles in workspaces in Power BI - Power BI | Microsoft Learn

Semantic model permissions - Power BI | Microsoft Learn

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI 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.