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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
viswaaa
Helper III
Helper III

Authentication selection for connection sharing

Hi All

 

My org sales team wants to create their own reports from our SQL Server database.

We have created some views in our SQL server db and gave access to only those views.

 

Sales is going to create their own work space and now I need to give access to the connection that I created.

So here my question is when creating a connection I took basic authentication.

Is this authentication method okay for sharing the connection with sales users? or do we need to select Windows authentication?

 

 

Please suggest

 

1 ACCEPTED SOLUTION

Yes, you can switch/use to Windows authentication for your existing connections. In Power BI Service, update the data source settings to use Windows authentication. Users will connect using their own Windows credentials, so they don’t need your credentials.

 

 

Use a dedicated service account for the gateway to avoid disruptions when employees leave. This account should have the necessary permissions and won’t be affected by individual employee changes. Meaning the gateway should run under a service account that has access to the SQL Server database.

 

If your personal credentials were used, an admin will need to update the data source settings with new credentials.

 

 

Hope this helps!!

View solution in original post

6 REPLIES 6
Kedar_Pande
Super User
Super User

@viswaaa 

  1. If you used Basic Authentication (username and password), the credentials are stored with the connection. This is generally not ideal for sharing, as it can lead to security risks if credentials are shared directly or exposed.
  2. Windows Authentication (or Active Directory) is typically more secure and is the preferred method

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

rajendraongole1
Super User
Super User

Hi @viswaaa -  If feasible, you can use Windows Authentication with an on-premises data gateway to simplify management and enhance security. However, if only Basic Authentication is available, ensure that proper security practices are followed, such as using strong passwords and secure connections.

For sharing data sources with multiple users (like your sales team), Windows Authentication is generally more secure and easier to manage over time. It also integrates well with Power BI's data refresh features through the On-premises Data Gateway, which can leverage Windows Authentication without storing passwords directly.

 

If you must use Basic Authentication (e.g., if some users are external or do not have AD accounts), ensure that you enforce strong password policies and consider encrypting communications with SSL/TLS.

 

ref links:

Tutorial: Connect to on-premises data in SQL Server - Power BI | Microsoft Learn

Manage a SQL Server data source - Power BI | Microsoft Learn

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi All,

 

Thanks for your replies.

If I use windows authentication do I need to give my windows credentials to connect to the database and then share this connection to other users ?

 

Please suggest

Hi @viswaaa  For windows authentication, you need to provide, server name, database name, user name and password.

 

You can find windows user name by executing sql statement : Select SYSTEM_USER;
or using task manager. Password is your login password.

Hi @shafiz_p ,

 

I have 2 questions here

1.)Can I still use this windows authentication for our existing connections and share the same connections to users.Will this work ?

2)If I use windows authentication and I left organizationtomorrow.

I think this credentials has to be change right ?

 

 

Yes, you can switch/use to Windows authentication for your existing connections. In Power BI Service, update the data source settings to use Windows authentication. Users will connect using their own Windows credentials, so they don’t need your credentials.

 

 

Use a dedicated service account for the gateway to avoid disruptions when employees leave. This account should have the necessary permissions and won’t be affected by individual employee changes. Meaning the gateway should run under a service account that has access to the SQL Server database.

 

If your personal credentials were used, an admin will need to update the data source settings with new credentials.

 

 

Hope this helps!!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors