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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-yuezhe-msft
Employee
Employee

@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

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yuezhe-msft
Employee
Employee

@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

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors