Forum Discussion

GAC's avatar
GAC
New Member
2 years ago
Solved

RLS on Semantic Model

Hi team, 

 

I have a model semantic published on PBI Service where  8 reports are using this model with base. I need apply RLS just on one report, how can I do this? I'm developing RLS rules onde PBI desktop and this Rules are applyng for all report, but I need it work on just one. 

  • After you connect to the semantic model, add your RLS table to that report's data model and wire it in.

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi lbendlin ,thanks for the reply, you are on the right track!

    Hi GAC ,

    Regarding your question, it is possible to create an additional table in power bi desktop that stores the user information, link it to the data table and later publish it to the power bi service. For reports that do not require RLS, they can be created through the semantic model in the power bi service. For reports that require RLS, connect the previously published semantic model in power bi desktop. Create measure and use ‘USERPRINCIPALNAME’ function to filter the data based on the user information stored in the security information table. Finally, the report is published to the power bi service, and the report dynamically filters the data according to the logged-in users.

3 Replies

  • After you connect to the semantic model, add your RLS table to that report's data model and wire it in.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi lbendlin ,thanks for the reply, you are on the right track!

    Hi GAC ,

    Regarding your question, it is possible to create an additional table in power bi desktop that stores the user information, link it to the data table and later publish it to the power bi service. For reports that do not require RLS, they can be created through the semantic model in the power bi service. For reports that require RLS, connect the previously published semantic model in power bi desktop. Create measure and use ‘USERPRINCIPALNAME’ function to filter the data based on the user information stored in the security information table. Finally, the report is published to the power bi service, and the report dynamically filters the data according to the logged-in users.

  • Hello everyone,

    I would have the same concern where one semantic model connects to several reports, but the RLS should apply to only a few of them. Ideally, each report would have their own RLS settings and dynamically adapt the results of the semantic models.

    I tried different scenarios, but I wish to confirm this theory has been working for someone. GAC​ lbendlin​