Forum Discussion

ZR3036's avatar
ZR3036
New Member
2 years ago
Solved

Updating RLS Security in Service when publishing

I have a PBI report I publish monthly - up to this point it has been multiple reports for different groups.  I am trying to use RLS to publish one report that will allow views based on roles.   I h...
  • TomMartens's avatar
    2 years ago

    Hey ZR3036 ,

     

    unfortunately, what you are looking for is not possible. In Power BI Desktop you define the rules for the roles (the DAX statement), even if you have a table of users (the email address, or being more precise - the userprincipalname).  it's not possible. You can not use Power BI Desktop to alter the membership of the roles.

     

    I recommend using Azure Active Directory security groups (now known as Azure Entra ID security groups), add these security groups to the roles instead of individuals. Still you need  to figure out how to properly assign the individuals to the security groups.

     

    Please be aware that Row Level Security does not apply if the workspace is same that hosts the semantic model and also hosts the members, the only exception, meaning RLS will be honored is the situation when the members have the Viewer workspace role assigned.
    It's always a good practic to share Power BI apps among users instead of adding users to the workspace.

     

    Hopefully, this helps to tackle your challenge.

     

    Regards,

    Tom