Hi, Hoping for assistance.
I have RLS setup and for all users except 2 it works as expected. For 2 users however, they can sucessfully access the App and report however it's showing no rows/data. I have tested their account in the "view as role" feature and can see their rows/data.
I've found 2 solutions on this community but neither worked in this case:
1. The users does not have access to the workspace so it's not to do with those secruity settings (all users who can successfully see their rows also do not have access to the workspace).
2. Have also updated the syntax from USERNAME to USERPRINCIPALNAME in the model however hasn't resolved.
Solved! Go to Solution.
Most likely their USERPRINCIPALNAME() value is not what you have in your RLS table. Troubleshoot that part.
Thankyou, yes it turns out to be an interesting case where microsoft authenticator has logged the user in with the correct email address, however making the USERPRINCIPALNAME() visible on PBI report showed that that user had an extra "mail#" at the start of their account login. Added an Or condition in the Dax to pick up either the main email address or with the "mail#" at the start which has fixed the problem. Hopefully this will help other people!
Most likely their USERPRINCIPALNAME() value is not what you have in your RLS table. Troubleshoot that part.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!
User | Count |
---|---|
125 | |
74 | |
65 | |
53 | |
53 |
User | Count |
---|---|
199 | |
104 | |
88 | |
79 | |
77 |