Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
tonylu87
New Member

dynamic RLS is not working with App

Hi PBI experts, I am very new to PBI and recently started build some reports in PBI. I had an issue with the dynamic RLS when I published the reports via the App. I set up dynamic RLS as instructed in PBI desktop using "=username()" function and publish the report to PBI service. I then set up "security" under the dataset and assigned roles to the internal testers. When I shared the report with them, it works pretty well. They only have access to part of the report. However, when I published the workspace to the App and then share the App link to them for testing, all the previous RLS didn't work at all. They have access to all parts of the report. I carefully followed all the instructions and problem-fixings but still didn't get it work properly. What I had confirmd is 1) all the internal testers are assigned with "viewer" roles in the workspace. 2) their' email address are all entered properly to the RLS roles. I am very keen to know why this is not working when I published the workspace to the App. Thank you very much for helping me! 

 

tonylu87_0-1612332654456.png

tonylu87_3-1612332888717.png

 

tonylu87_1-1612332779650.pngtonylu87_2-1612332825356.png

 

1 ACCEPTED SOLUTION
v-xiaoyan-msft
Community Support
Community Support

Hi@tonylu87

 

Please check if you give them the app’s underlying datasets using permission in the app . That’s may cause this problem.

 

0215-A.png

 

 

Hope it helps.

 

Best Regards,
Caitlyn Yan

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-xiaoyan-msft
Community Support
Community Support

Hi@tonylu87

 

Please check if you give them the app’s underlying datasets using permission in the app . That’s may cause this problem.

 

0215-A.png

 

 

Hope it helps.

 

Best Regards,
Caitlyn Yan

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

tonylu87
New Member

Thanks for the suggestion. Unfortunately I've tried but still didn't work. One of my tester gave a screenshot when he installed the "app", it shows he is the owner of the app workspace after installation. Is it correct? 

ibarrau
Super User
Super User

Hi. This sounds weird. My first idea was that you should check members as Viewers, but you say they are. I had a problem once a long time ago with dynamic RLS that I can't understand yet why that happen. My solution was changing USERNAME() to USERPRINCIPALNAME( ). I still don't know why the first one didn't work because is the one I always use, but that might be a test for you and I hope it works :S

Regards,

P/D Unpublish/delete and publish again the app after a RLS configuration (not upgrade/upload)


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors