Forum Discussion
Lightbot
9 years agoNew Member
USERNAME() and USERNAMEPRINCIPAL() not working on published report.
Hi, I'm trying to implement user based filtering using RLS as described here: https://community.powerbi.com/t5/Community-Blog/Different-approach-to-Dynamic-Row-Level-Security/ba-p/80108 B...
- 9 years ago
Hi Anonymous,
When I signed into the report yesterday the measures were working fine, so my initial problem is solved.
Thanks for the info about the admin rights, I had wondered that but the confirmation has helped testing.
I've managed to solve my security problem using a simpler RLS:
[Category] = LOOKUPVALUE(security_mapping[Category], security_mapping[Email], USERNAME())
Thanks for the help.
Anonymous
9 years agoNot applicable
Lightbot Have you applied users to the roles in the Service? Go to the dataset -> Security and you need to apply different users or groups to the roles you've created.
Anonymous
5 years agoNot applicable
So... are you saying for the filter on User() I have to add ALL users to the Row-Level Security? Wow! that is over 250 people! Or, just those with advanced rights in the workspace?