The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi Friend,
I am new to Power BI. I have created a proof of concept (POC) to show embedded reports in a React application. I am using a service principle to generate an embed token and retrieve report details. Now, I want to restrict the data/reports shown to users based on their role. Does anyone have any ideas on how I can achieve this?
Solved! Go to Solution.
Hi @pschandekar09 ,
You can use row-level security (RLS) in Power BI to restrict data access based on a user's role. RLS allows you to define filters at the row level, which means that users will only see the data that they are authorized to see based on their role. You can refer the following links to get it:
Row-level security (RLS) with Power BI - Power BI | Microsoft Learn
Best Regards
Thank you for your valuable response. I have gone through the suggested link and it is precisely what I was looking for. However, the solution provided is in C#. Could you please suggest a sample code in Node.js?
Hi @pschandekar09 ,
You can use row-level security (RLS) in Power BI to restrict data access based on a user's role. RLS allows you to define filters at the row level, which means that users will only see the data that they are authorized to see based on their role. You can refer the following links to get it:
Row-level security (RLS) with Power BI - Power BI | Microsoft Learn
Best Regards
How is that going to pick up the user if they are using a service principle to log in?