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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
prasa
Helper I
Helper I

Save Credentials for Excel in pbix file

One of the datasources in my desktop report is using excel file from a shared location which I have access to. If I want to store some common account credentials to access that excel file, I cannot edit permissions for this excel file from the datasource settings. I am able to edit permission for all other datsources like sql, sharepoint. Is there a way to store credentials in pbix file for accessing the excel file from that shared path?

1 ACCEPTED SOLUTION

Hi @prasa,

 

Yes, when using SQL Server datasource, Power BI desktop will ask for a credential. However, it is not sotred in pbix file. The credential for the data source are stored on the machine which have the .pbix created C:\Users\<user name>\AppData\Local\Microsoft\Power BI Desktop\User.zip.

 

So yes. It is the case with all datasource not just Excel.

 

Reference: https://community.powerbi.com/t5/Desktop/Query-Editor-requires-credentials/td-p/164515 

 

Thanks,
Xi Jin.

View solution in original post

5 REPLIES 5
v-xjiin-msft
Solution Sage
Solution Sage

Hi @prasa,

 

As I know, currently it is not supported to store credentials in pbix file.

 

So I would suggest you to submit an idea for a feature request.

 

Thanks,
Xi Jin.

Is it the case with any datasource or just excel? I see an option to input database credentials for sql datasource. Will it not be saved in the file?

 

Hi @prasa,

 

Yes, when using SQL Server datasource, Power BI desktop will ask for a credential. However, it is not sotred in pbix file. The credential for the data source are stored on the machine which have the .pbix created C:\Users\<user name>\AppData\Local\Microsoft\Power BI Desktop\User.zip.

 

So yes. It is the case with all datasource not just Excel.

 

Reference: https://community.powerbi.com/t5/Desktop/Query-Editor-requires-credentials/td-p/164515 

 

Thanks,
Xi Jin.

I need to update the credentials, however, I can only find The credential for the data source are stored on the machine which have the .pbix created C:\Users\<user name>\AppData\Local\Microsoft\Power BI Desktop\,

the "User.zip" folder is not found. @v-xjiin-msft 

Okay got it. 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 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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