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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
divyang_vyas
New Member

How to retrieve the data when RLS is implemented at back end

We have a multi-tanent Azure web app (Asp.net MVC 5) connected to Azure SQL database, used by around 400 users and growing. I want to implement Power BI for data visualization. We've implemented RLS using SESSION_CONTEXT in SQL. I've gone through the article https://docs.microsoft.com/en-us/power-bi/developer/embed-multi-tenancy and learnt that I can use either "Power BI workspace-based isolation" or "Row-level security-based isolation". It appears to me that RLS based isolation would be easier to manage and efficient (any expert's advice is always welcome). In order to retrieve the data, it is required to set a session context before running a query, as we have implemented RLS at database side. What should be the correct and efficient approach to retrieve the data in this scenario? 

1 ACCEPTED SOLUTION
divyang_vyas
New Member

I finally have a solution and posting it here for reference:

 

For "Power BI workspace-based isolation" I can use parameterized report and create a template

Help source: Jorge Segarra https://www.facebook.com/groups/powerbi/

 

For "Row-level security-based isolation" I can store a list of all tenant ids separately and then use the list as parameter

Help Source: https://www.youtube.com/watch?v=iiNDq2VrZPY

View solution in original post

1 REPLY 1
divyang_vyas
New Member

I finally have a solution and posting it here for reference:

 

For "Power BI workspace-based isolation" I can use parameterized report and create a template

Help source: Jorge Segarra https://www.facebook.com/groups/powerbi/

 

For "Row-level security-based isolation" I can store a list of all tenant ids separately and then use the list as parameter

Help Source: https://www.youtube.com/watch?v=iiNDq2VrZPY

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.