Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Dynamics RLS not working in PowerBI Service

I configured dynamic RLS in PowerBI Desktop, and it works flawlessly; everything is as expected. I get errors when I try to enter an email using the "Now viewing as" feature online. I'm not sure what...
  • v-henryk-mstf's avatar
    3 years ago

    Hi Anonymous ,

     

    For dynamic rls, you cannot assign users to a role within the Power BI desktop. You assign them in the Power BI service. By using the username() or userprincipalname() DAX function and configuring the appropriate relationships.

    [User] = USERPRINCIPALNAME()

     

    Also have you previously defined roles and rules in the Power BI service, if so you will have to recreate them in Power BI Desktop.

     

    For more info, you can read below document:

    Row-level security (RLS) with Power BI - Power BI | Microsoft Learn

    Dynamic Row Level Security (Dynamic RLS) - Microsoft Power BI Community


    If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


    Best Regards,
    Henry


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.