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
Anonymous
Not applicable

Unable to pull data into power BI desktop through OneDrive

Hi there,

 

I've been trying to get excel data from OneDrive but I've been getting an error stating "Access to the resource is forbidden" though the file was uploaded to the OneDrive by myself and I'm also unable to refresh the dataset which is stored in my teammate's OneDrive.

 

Any help on getting this issue rectified would be helpful.

5 REPLIES 5
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

After test, it has no issues that I am logging in with different accounts in Power BI and One Drive. But when you get data from OneDrive, you must type OneDrive credentials rather than use your Power BI account, please follow the steps below.
1. Click File->Options and Settings->Data source settings->clear your previous permission.

Onedrive1.png

2. In Power BI desktop, type the link, please choose the Organizational Account to sign in(because use OneDrive for business, type your Organizational Account of OneDrive here), it will work fine after clicking connect. In this part, if you use windows authentication, it will return the error message, because you current power BI account is not windowns account.

Onedrive2.png

Best Regards,
Yingjie Li

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

Anonymous
Not applicable

Even after trying to login to organizational link, pop up comes saying we cannot authenticate you

could it be that you have microsoft authenticator step that is needed from company policy? 

So it always needs authenticator confirmation, i have the same issue and just was thinking that this might cause the issue. 

amitchandak
Super User
Super User

@Anonymous , Refer if this can help

https://community.powerbi.com/t5/Desktop/Refreshing-data-through-Onedrive/m-p/593185

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you for the response @amitchandak. However, this isn't helping me overcome my problem. I always try to pull the data as it was mentioned in the link you've provided.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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