Forum Discussion

a_thiefffffffff's avatar
a_thiefffffffff
Frequent Visitor
7 months ago
Solved

How to implement tenant-based RLS in Power BI when users authenticate via ERP (not Power BI)?

We recently updated our semantic model strategy for financial reporting in a multi-tenant environment. Initially, we planned to use a single semantic model for all reports, but as client numbers will...
  • v-aatheeque's avatar
    v-aatheeque
    6 months ago

    Hi a_thiefffffffff 

    Thanks for clarifying that users are authenticating through your ERP. In this setup, the key is to ensure Power BI receives the correct Entra identity when embedding. You can achieve this with EffectiveIdentity in Power BI Embedded, which lets your ERP pass the user’s Entra UPN  into the dataset.

     

    From there you can implement dynamic RLS by maintaining a Tenant Security table (TenantID - UPN/GroupID) and filtering your fact tables accordingly. This way, each tenant only sees their own data  even though they’re logging in via ERP.

    If your ERP doesn’t natively integrate with Entra ID, you will need to configure it so that the Entra identity is passed through during embedding , otherwise RLS won’t apply correctly.