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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
pschandekar09
Regular Visitor

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?

1 ACCEPTED SOLUTION
Anonymous
Not 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

Using standard cloud based row-level security with embedded content in Power BI embedded analytics -...

Best Regards

View solution in original post

3 REPLIES 3
pschandekar09
Regular 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? 

Anonymous
Not 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

Using standard cloud based row-level security with embedded content in Power BI embedded analytics -...

Best Regards

Anonymous
Not applicable

How is that going to pick up the user if they are using a service principle to log in?

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.