Forum Discussion

Rick4him's avatar
Rick4him
Helper I
8 years ago
Solved

Only roles seem to have an effect on RLS

I have setup a test AD user and when the signed on as the user a shared report has RLS via roles working correctly.  When using the same report (dataset) and using the EffectiveIdentity function it d...
  • Rick4him's avatar
    Rick4him
    8 years ago

    Hi, 

     

    I am using "App owns data" and I did follow the referenced article.   From the article you linked, what is the point of assigning a user (in red) if they have no effect (see your statement n blue)?

     

    Users – These are the actual end-users viewing reports. In Power BI Embedded, users are identified by the username property in an embed token.

     

    • Assignment of users to roles within the Power BI service does not affect RLS when using an embed token.

     

     

    If the key is not assigning users to roles in PowerBI service, how is a user assigned to a role (in green) as it cannot be done in the PowerBI Desktop (via the link in pink), it states you can only assign users to roles in the Power BI Service (see in purple).

     

    Roles Users belong to roles. A role is a container for rules and can be named something like Sales Manager or Sales Rep. You create roles within Power BI Desktop. For more information, see Row-level security (RLS) with Power BI Desktop.

     

    You cannot assign users to a role within Power BI Desktop. This is done within the Power BI service. You can enable dynamic security within Power BI Desktop by making use of the username() or userprincipalname() DAX functions and having the proper relationships configured.

     

     I have found another issue but it actually relates directly to an issue with the Power BI Desktop.  If you use "View as roles: Other User" and the user you are using is part of an NT group given access on the PowerBI Service the filter does not work , instead it gives the user access to all the data.  However this same user signed on and using a shared dashboard the filter does work.  The View as roles: by the role, the role the user has been assgined via the NT group does work. It seems even though the option is there, the PBI desktop does not reach out to the Power BI service to see what access the user might actually have. 

     

     

    Two questions:

    1. How do you assign a user to a role when using "App owns data" embedding?

    2. In your statement below what constitutes an identity, user and role(s) are parameters. Where is the user compared against if not in the PowerBI Service?  

     

    • While the Power BI service will not apply RLS setting to admins or members with edit permissions, when you supply an identity with an embed token, it will be applied to the data.