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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
tkb
New Member

Data source supporting Direct Query with authentication

I'm rather new to PowerBI and we are trying to provide data from a web application to PowerBI for an analytics report. I would like to solve the following scenario:

 

* The web application provides a REST endpoint that requires authentication of the user in some form (e.g. username/pwd or OAuth) and provides data of a fixed format that the user is allowed to access.

* An analyst is creating a PowerBI report that can pull and processes data of that format and is published in PowerBI services with a data source that retrieves the data when a user looks at the report in PowerBI services

* A user of the web application is directed to the URL of the report in PowerBI service, and when the data for the report is retrieved, the user is authenticated with the REST endpoint (either by entering credentials or by an OAuth flow), and the report is populated with the user specific data.

 

To my current understanding this means I would need a data source that supports the Direct Query functionality with authentication. Is that correct and can I create such a data source? I experimented already with the SDK for custom data sources and got for example the Github example with the OAuth to work, but as far as I understand that only authenticates the analyst that creates the report to pull the data, but not the user who looks at the report. 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@tkb,

It seems that you want to display different data in Power BI report based on user authentication. If so,  you would need to define Row Level security in Power BI.

In addition, when connecting to web source in Power BI, it is not possible  to use Direct Query mode.

Regards,
Lydia

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@tkb,

It seems that you want to display different data in Power BI report based on user authentication. If so,  you would need to define Row Level security in Power BI.

In addition, when connecting to web source in Power BI, it is not possible  to use Direct Query mode.

Regards,
Lydia

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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