Forum Discussion
Filter out using USERPRINCIPALNAME()
- 4 years ago
You can create an RLS role with the rule
[email] <> USERPRINCIPALNAME()Once you have created a role, anyone you want to view the report must be assigned to a role. This is the intended functionality and there isn't a way to avoid assigning roles if you want to use RLS.
See the documentation and prior discussion here:
https://community.powerbi.com/t5/Desktop/Row-Level-Security-All-Users/m-p/253154
harshagraj , You can use USERPRINCIPALNAME only in a measure. I doubt you can use that in a column
- harshagraj4 years ago
Post Partisan
Thanks for the reply but how do i solve this problem?
I also tried creating a role like NAME<>LOOKUP(NAME,EMAIL,USERPRINCIPALNAME())
This is also not working properly because i dont have a speicific AD gropu to assign.
- harshagraj4 years ago
Post Partisan
Also if i have to create a measure then how do i aggregate Name column?
If(???(Name)=USERPRINCIPALNAME(),1,0)
Kindly help.
- harshagraj4 years ago
Post Partisan
Hello can someone help on this topic
Greg_Deckler AlexisOlson PhilipTreacy v-zhangti