Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Integrate PowerBI Embedded report and Paginated report with RLS

Hi,

 

I would like to integrate my PowerBI Embedded report with the paginated report. My reports are developed for external customers coming from other companies and we are embedding our PowerBI reports into our product with iframe etc. We have already setup Role Level Security (RLS) for our PowerBI reports which is working well for our customers.

With the paginated report, we would like to link it to our existing PowerBI report. Have gone through some online documentation about integrating PowerBI report and paginated report. I've also tested on my own which was working:

http://www.cittabase.com/integrating-power-bi-report-with-paginated-report/

 

However, the problem is that I am not sure how to get the RLS setup properly in the paginated report. My ultimate goal is to create a link in the PowerBI report that allows user to click on it and redirect to the paginated report page. In other words, the RLS parameters should be passed from the PowerBI report to the Paginated report so that the user can see the relevant data under their user account.

 

The configuration in the above link is working for reports without any RLS concerns, but I am not sure how to setup for the RLS even after reading the below documentation:

https://docs.microsoft.com/en-us/power-bi/developer/embedded/paginated-reports-row-level-security

 

Anyone can guide me how to do this? Thanks.

 

Best regards,

Emily

 

 

 

  • Yeah in App-Owns-Data scenarios, we're a bit more limited. That said depending on your specific sceanrio, you can also look at the embed-token user filters. The application would need to specificy the user name on the token, then do filtering in the report (this is a secure method). Just look under the "passing the configured parameter using the embed token" at: 

    https://docs.microsoft.com/en-us/power-bi/developer/embedded/paginated-reports-row-level-security 

     

    Otherwise, at a later date we are looking at using identify blobs, where a token can be used to do real "Single Sign On" auth to the data source. 

     

    Hope that helps!

7 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      amitchandak 

      As mentioned earlier, we are already implementing PowerBI Embedded with RLS as of today.

      In addition, I have already read the Paginated Embedded documentation earlier and I found it's difficult to understand the configuration especially how to link PowerBI Report and Paginated report together in consideration of passing the UserId from one to another.

       

  • Anonymous's avatar
    Anonymous
    Not applicable

        This limit is still present at this day. Although i would like to share a solution:

    When user sends embedurl request to your application, your application can generate an app "session token" (saved to db with related context , userid, ...). User can then request power bi paginated report with this "session token" by url parameter.

    The report can then resolve it's user_id parameter value by retrieving it from db using this session token.

    Although not straightforward solution, it's secure and only way found in a app owned embedding where RLS is not applicable.

     

    Hope this helps someone.