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

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

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric update to learn about new features.

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.