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

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

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.