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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
v-yangliu-msft
Community Support
Community Support

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors