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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Lorenz33
Helper III
Helper III

Data Gateway - Pass user credentials to data source

How can we pass users credentials through a data gateway to the data source?

 

I understand that this can only be done with Direct Query. To try this I created a simple Power BI report that connects to the data source via direct query using my current windows credentials. I then published it and proceeded to connect the data source to the data gateway.

 

Normally we specify a user account (Basic or Windows) that allow us to sign into our SQL Server databases. This way if user Mike.Smith@ms.com runs a report and refreshes the data, the gateway will use the hard coded credentials created during the initial setup and not the Mike.Smith@ms.com user account.

 

This looks like Kerebos would have to be set up. For authentication I used OAuth2 and under single sign-on I chose "Use SSO via Kerberos for DirectQuery queries". The create button was greyed out so I clicked on "Edit Credentials" under Authentication and chose my account under Office 365. I then clicked "Create" but it fails and the message at the top was "Unable to create data source. Invalid connection credentials."

 

I am sure that others have run into situations where it is not permitted for everyone to use the same (fixed) credentials. How can the user credentials be passed through the gateway to the database?

1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi @Lorenz33 

 

You have to make sure that your DirectQuery database supports SSO.

 

Here are the supported list: Overview of single sign-on for on-premises data gateways - Power BI | Microsoft Learn

And if required here is how to configure Kerberos: Configure Kerberos-based SSO from Power BI service to on-premises data sources - Power BI | Microsof...





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

Proud to be a Super User!







Power BI Blog

View solution in original post

1 REPLY 1
GilbertQ
Super User
Super User

Hi @Lorenz33 

 

You have to make sure that your DirectQuery database supports SSO.

 

Here are the supported list: Overview of single sign-on for on-premises data gateways - Power BI | Microsoft Learn

And if required here is how to configure Kerberos: Configure Kerberos-based SSO from Power BI service to on-premises data sources - Power BI | Microsof...





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

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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 Kudoed Authors