Forum Discussion
How to show embedded reports to users as per their role
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?
- Anonymous2 years ago
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
3 Replies
- AnonymousNot applicable
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
- AnonymousNot applicable
How is that going to pick up the user if they are using a service principle to log in?
- pschandekar09Regular Visitor
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?