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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.