Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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?
Solved! Go to Solution.
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...
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...
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.