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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
SLehmann
New Member

Export Template with Datasource Credentials

Hi friends,

i have a problem from which i hope you can assist me.

When i create a pbi Desktop template (.pbit) the added credentials will not saved inside this file.

The problem is, that any user who should use this template to create reports will asked for the credentials.

This is a big security issue in our environemt becuase just our IT department knows theese credentials.

So designers can't do their job. -.-

 

I noticed that crdentials will not be saved inside the file but it'll be saved in the user.zip inside

C:\Users\Username\AppData\Local\Microsoft\Power BI Desktop\user.zip

 

When i move this file to the computer of the affected user, we will get the "enter credentials" screen anyway.

I thought about a certificate in the cert store which have also moved or copied but i am not sure.

 

Is there any way to share a pbit or pbix with the credentials inside?

 

Best regards
Sebastian

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @SLehmann ,

 

I find one guess from @ioamnesia and I agree with him. This may the cause of the issue you meet.

 


 

Best guess: the credentials.bin file inside the zip is encrypted with either a certificate or stored value (perhaps in the credential manager) on the source computer and that key does not exist on the "different computer" you moved the zip to.

 

Reference: Solved: Re: Query Editor requires credentials? - Microsoft Power BI Community

 


 

In addition, how about publishing your .pbix file to Power BI Service and other users can copy the report or create new reports based on the dataset? For these two options, it is only needed to give permission of the dataset, not needed to enter credentials manually by each user. For details, please refer to these official documents:

Copy reports from other apps or workspaces - Power BI | Microsoft Docs;

Connect to datasets in the Power BI service from Power BI Desktop - Power BI | Microsoft Docs.

 

 

Best Regards,

Icey

 

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

View solution in original post

1 REPLY 1
Icey
Community Support
Community Support

Hi @SLehmann ,

 

I find one guess from @ioamnesia and I agree with him. This may the cause of the issue you meet.

 


 

Best guess: the credentials.bin file inside the zip is encrypted with either a certificate or stored value (perhaps in the credential manager) on the source computer and that key does not exist on the "different computer" you moved the zip to.

 

Reference: Solved: Re: Query Editor requires credentials? - Microsoft Power BI Community

 


 

In addition, how about publishing your .pbix file to Power BI Service and other users can copy the report or create new reports based on the dataset? For these two options, it is only needed to give permission of the dataset, not needed to enter credentials manually by each user. For details, please refer to these official documents:

Copy reports from other apps or workspaces - Power BI | Microsoft Docs;

Connect to datasets in the Power BI service from Power BI Desktop - Power BI | Microsoft Docs.

 

 

Best Regards,

Icey

 

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.