Forum Discussion
PBI Desktop and Service different behavioral for RLS testing (View as Role vs Test as role)
Hi
For a customer i have created a PBI Report with RLS.
I have tested the report in Dektop, and for the RLS i have used the View as Roles with setting some user and the role, that i have created for RLS. In this case everything worked as expected.
When i have published the report to PBI Service, and wanted to test the report the same way, it did not worked. In Service i have selected for the dataset the Security setting, and choose for the role Test as role. In the report i see, the message "Now viewing as" the role. But in this case, there is different behavioral to PBI Desktop:
- when i set "Now viewing as" the role i have created, it is working, but only for my account. When i choose in the "Now viewing as" different person (email ID), the report do not reflect this change. (i have added a measure for userprincipalname and username function, and it display my IDs, not the user i have set). When i choose different user, i cannot choose, to view as the role, that i have created for the RLS. (i think, this is the difference between the Service and Desktop), and therefore, when i set "Now viewing as" different person, it dont work.
- when different user loged to PBI Service, wiht his credentials, and opened this report, it worked as expected (the user see only, what shold be displayed).
The question is, if you have the same expirience? Is this a bug or feature? This is working different than in PBI Desktop
Thank you.
4 Replies
- AnonymousNot applicable
Hi tomas12344 ,
Not a mistake.
Within Power BI Desktop, Other user displays different results only if you're using dynamic security based on your DAX expressions.
Please refer.
Row-level security (RLS) with Power BI / Validate the roles within Power BI Desktop
Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
- tomas12344Helper III
Yes, this i understand, as i have qritten. But i would except the same behavioral in PBI Desktop and Service (i mean when using the function to test RLS).
- AnonymousNot applicable
Hi tomas12344 ,
Sorry, I didn't read the question clearly.
// When i choose in the "Now viewing as" different person (email ID), the report does not reflect this change.
1.different person (email ID) Does this user ID have access to the dataset?
For example, if I add the test id to the aa role, when I use view as aa it displays correctly, but when I enter the id above it, it displays all the data because I have full access to the dataset.This user is the administrator of the workspace and has full access to the dataset in the workspace.
If that's not the reason, you can also refer to this, or alternatively share more details of the test. Thanks in advance.
Avoid using RLSBest Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data