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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.