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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Database Credentials Missing When Opening File From Another User

When creating the report in desktop I connected to SQL Server and used database credentials and entered a username/password and was using import for the data connectivity mode. I then sent the report to a co-worker to review the format and data but when my co-worker opens the file and tries to refresh the data they get prompted to enter the database credentials again. 

 

Is there a way to embed the username/password in the .pbix file so that I can send the file to a user without having them re-enter the database credentials? 

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Anonymous

 

Currently, Power BI Desktop can't store the credential for accessing data source when refreshing the dataset. So in this scenario, you have to grant the permission to the end users on SQL Server side.

 

Regards,

View solution in original post

1 REPLY 1
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Anonymous

 

Currently, Power BI Desktop can't store the credential for accessing data source when refreshing the dataset. So in this scenario, you have to grant the permission to the end users on SQL Server side.

 

Regards,

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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