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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
RajaSadagopan
Regular Visitor

Dynamic RLS with embedding

Hi,

So I have embedded a powerbi report in another web application. To view the report, user needs to login. Now the report has data for all departments. But the logging in user belongs to some specific department and he should be given access to view only that data. 

Now the data part, The report contains 5 dashboard from 5 fact tables. All the fact table has department id which is mapped to a dim_department table (DIMENSION TABLE). Out of the 5 fact tables, we have fact_user table containing the username by which the user is logged in, his department ID and several other information which is required for dashboarding purpose.

Tricky Part: There are around 30000 users logging into the web application from different domain without powerbi license. So we embed the report by Service principal (Azure Active Directory).

How to apply RLS at department level in powerbi while embedding??

1 ACCEPTED SOLUTION

RLS must control the data model. It needs to be applied to a dimension table on the outside of the star schema.

View solution in original post

4 REPLIES 4
RajaSadagopan
Regular Visitor

No we have not applied RLS to dim table! The username in fact_user is the username used to login to the web application. The username is linked to department via department ID

RLS must control the data model. It needs to be applied to a dimension table on the outside of the star schema.

Thanksss Bro ❤️

 

lbendlin
Super User
Super User

So we embed the report by Service principal

Don't do that? 

 

There are around 30000 users logging into the web application from different domain

From outside your Entra ID?

 

Is your RLS applied to one of the dimension tables? What is it based on? Mapping from userprincipalname to department?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.