Forum Discussion
Multi-tenancy with Power BI Embedded
I'm trying to wrap my head around how to use Power BI Embedded in a multi-tenant environment.
I've done the following:
- Set up a PowerBI embedded Workspace collection and workspace
- Uploaded a PowerBI Desktop File (.pbix) to the workspace
- Configured the data source for the data set (SQL Database)
- Created a PowerBI token and been able to generate a report in my Web App
Now I'm trying to understand how to make this solution tenant-aware. Let's say I have 10 000 users who I want to display my report to, but I want them to see different data in the report since their access differs.
I could create 10 000 separate PowerBI Desktop Files showing the different reports, and then, depending on which user is logged on to my application show the different reports. This would of course not be a scalable method to maintain.
I've read that there is a Row-Level Security available, but it's not clear to me whether I can currently configure RLS for data sets set-up in a Azure Power BI Workspace. Is there a way to do this? (I understand that RLS is still in preview). If not, how do one currently accomplish multi-tenancy with Power BI Embedded?
7 Replies
- Greg_DecklerCommunity Champion
I do not believe that RLS is supported by Power BI embedded. They just extended RLS to content packs:
https://powerbi.microsoft.com/en-us/documentation/powerbi-service-whats-new/
One route to go would be to publish your dashboard/report in the Service, configure RLS and then share it with everyone.
Before that, you had to create a separate report and dashboard for each role/customer.
- antpstevensNew Member
Thanks.. have you confirmed this works? i.e.. 1 report and RLS implemented for Azure SQL server and effectively then we have secure multi-tennancy? Is there anything else published to guide on this approach. I've been looking everywhere so would appreciate any further help.
Also, assuming you have RLS in place on Azure SQL Database, how do you pass the userID to the embedded PowerBI?
- Greg_DecklerCommunity Champion
Yes, I have done RLS with a dataset and it worked, although that dataset originated from a CSV file so I imported it into Desktop and then published to Service.
Here is a recent blog article on it:
http://community.powerbi.com/t5/Community-Blog/Row-Level-Security-in-Power-BI/ba-p/31031
They just released RLS like this month so it is pretty new.
- AnonymousNot applicableFast forward to the Q&A in the video mentioned here
http://community.powerbi.com/t5/Developer/Power-BI-Embedded-access-control/m-p/27332
They are working on it. - dhruvsakalleyRegular Visitor
https://docs.microsoft.com/en-us/azure/power-bi-embedded/power-bi-embedded-rls
This seems to be available now. Can someone confirm if this solves the above problem.