Forum Discussion
How to Validate RLS in Power BI Desktop
In the Desktop, go to the Modeling tab in the ribbon and in the Security section, choose "View as Roles"
- akj27848 years agoPost Partisan
If I do the data model in SSDT, deploy it to SSAS and do a live query in Power BI Desktop, the View as feature is disabled.
And I don't see this feature in Service.
Is there any other way to validate it ?
- v-yulgu-msft8 years agoMicrosoft Employee
Hi akj2784,
We are not able to define roles within Power BI Desktop for Analysis Services live connections. We need to implement RLS within on-premises Analysis Services models outside of Power BI.
Reference: Tutorial: Dynamic row level security with Analysis services tabular model
Best regards,
Yuliana Gu
- akj27848 years agoPost Partisan
Agree. My question was more on the validation part.
I have applied RLS in the SSDT, deployed it to SSAS.
Now being a developer how would I test whether my implementation is correct or not. Basically Unit Testing of the code.
Can I impersonate my id to someone else and check the data ?
Or what is the way to validate such scenario.
Regards,
Akash