Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Please advise. I set up Dynamic Row Level Security for a report that uses a table from DataVerse as my security table (with email addresses). The email address field is formatted as Email Address in the table. I followed all of the steps in this video as much as they show (https://www.youtube.com/watch?v=Z3oLWtWABfo). I can test in Power BI desktop using the users' email addresses. I also tested the security (test as role) on the Power BI Diamond Workspace (after publishing). Everything worked great until I shared the report with two users who have Viewer access to the workspace. They receive the following message just as if they had no access to the data: "The report can't be viewed because the underlying dataset uses row-level security (RLS)."
Here is the code I set up in the Modeling, Manage Roles: [RLS_EmailAddress] = USERPRINCIPALNAME()
I've done some searching on forums and saw someone say that USERPRINCIPALNAME() needs to be in double quotes. That breaks this from working in the desktop and web versions.
Addl info- I am bringing the data in all tables as a dataset(Import) rather than accessing the data through a DirectQuery connection.
Please advise!
Solved! Go to Solution.
I just want to reply back as to what the solution to my problem was. This was something that was not shown in the original video because the test shown still met the needs. Even though the email addresses are in the table I created for RLS, I still needed to add the email addresses to the Security Settings for the Dynamic RLS group I created
I just want to reply back as to what the solution to my problem was. This was something that was not shown in the original video because the test shown still met the needs. Even though the email addresses are in the table I created for RLS, I still needed to add the email addresses to the Security Settings for the Dynamic RLS group I created
Hi All. I am still looking for a resolution to this issue. If anyone has any ideas, please let me know
@Tamer Thank you for your prompt response. I just tried USERNAME(). I also tried USERNAME (). I even tried [RLS_EmailAddress] = USERNAME( ) || [RLS_EmailAddress] = USERPRINCIPALNAME()
Unfortunately, none of the three worked either.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
21 | |
21 | |
19 | |
13 | |
12 |
User | Count |
---|---|
42 | |
28 | |
23 | |
22 | |
22 |