Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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?
User | Count |
---|---|
10 | |
5 | |
4 | |
4 | |
3 |
User | Count |
---|---|
14 | |
9 | |
5 | |
5 | |
4 |