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
munindra
Frequent Visitor

connecting lakehouse with python in vscode

I am trying to access the files present inside a folder from my lakehouse for that i created a client id and key in azure portal even though connection is established i am unable access the content  inside the workkspaces for this i am following this documentation:-

Access OneLake with Python - Microsoft Fabric | Microsoft Learn
and i am getting this error
An error occurred: (Forbidden) User is not authorized to perform current operation for workspace '0c185235-06e7-47ce-b224-8efdec3c3112', artifact 'b8f4fa05-2593-4c2c-b568-b02123f3f23e'.
Code: Forbidden
Message: User is not authorized to perform current operation for workspace '0c185235-06e7-47ce-b224-8efdec3c3112', artifact 'b8f4fa05-2593-4c2c-b568-b02123f3f23e'.

munindra_0-1735906088975.png

below is my code that i am working on 

munindra_1-1735906122077.png

do i need to create azure data lake inside storage account of azure or this issue is related to different cause

 

1 ACCEPTED SOLUTION
v-hashadapu
Community Support
Community Support

Hi @munindra , thank you for reaching out to the Microsoft Fabric Community Forum.


The error mentioned indicates that your application or service principal does not have the necessary permissions to access the specific workspace and artifact within your Azure Lakehouse.


Please consider below:

  • Ensure that the service principal has the necessary permissions within the specific Lakehouse workspace itself. You might need to grant specific access control rules (ACLs) within the workspace to allow the service principal to access the desired data.

If this helps, please consider marking it 'Accept as Solution' so others with similar queries may find it more easily. If not, please share the details.
Thank you.

View solution in original post

4 REPLIES 4
v-hashadapu
Community Support
Community Support

Hi @munindra , Hope your issue is solved. If it is, please consider marking the answer 'Accept as solution', so others with similar issues may find it easily. If it isn't, please share the details.
Thank you.

v-hashadapu
Community Support
Community Support

Hi @munindra , Hope your issue is solved. If it is, please consider marking the answer 'Accept as solution', so others with similar issues may find it easily. If it isn't, please share the details.
Thank you.

v-hashadapu
Community Support
Community Support

Hi @munindra , Hope your issue is solved. If it is, please consider marking it 'Accept as Solution', so others with similar queries may find it easily. If it isn't, please share the details.

v-hashadapu
Community Support
Community Support

Hi @munindra , thank you for reaching out to the Microsoft Fabric Community Forum.


The error mentioned indicates that your application or service principal does not have the necessary permissions to access the specific workspace and artifact within your Azure Lakehouse.


Please consider below:

  • Ensure that the service principal has the necessary permissions within the specific Lakehouse workspace itself. You might need to grant specific access control rules (ACLs) within the workspace to allow the service principal to access the desired data.

If this helps, please consider marking it 'Accept as Solution' so others with similar queries may find it more easily. If not, please share the details.
Thank you.

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 FBC25 Carousel

Fabric Monthly Update - June 2025

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