Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I can use dynamic RLS ( USERPRINCIPALNAME()), if I have all the details of the email id's that I want to restrict, but for example if i have some users which do not have there emails present in the dataset, and i want to restrict them to a static role, such as if they login they should see specific amount of information can I do that?
How can I give full access to some users over dynamic RLS?
Solved! Go to Solution.
@Anmolgan
1. You could create a new role for the static roles you want the specific users to see, then assign their account to the new role instead of the dynamic role filtered using USERPRINCIPALNAME().
2. To give the full access to someone over RLS, you could change the user's workspace role or give the user edit permission to the dataset. Because RLS only restricts users who can only view the reports. See: https://docs.microsoft.com/en-us/power-bi/service-new-workspaces#roles-in-the-new-workspaces
Best regards
Paul Zheng
@Anmolgan
1. You could create a new role for the static roles you want the specific users to see, then assign their account to the new role instead of the dynamic role filtered using USERPRINCIPALNAME().
2. To give the full access to someone over RLS, you could change the user's workspace role or give the user edit permission to the dataset. Because RLS only restricts users who can only view the reports. See: https://docs.microsoft.com/en-us/power-bi/service-new-workspaces#roles-in-the-new-workspaces
Best regards
Paul Zheng
@Anonymous So I give the users edit permission on my workspace they can view the full content? regardless of the Dynamic RLS?
Yes, we have made tests on that and you can also find it here:
scroll down to Using RLS with workspaces in Power BI: https://docs.microsoft.com/en-us/power-bi/service-admin-rls
Paul Zheng
@Anonymous This says "If you have configured the workspace so that members have edit permissions, the RLS roles will not be applied to them. Users will be able to see all of the data."
So if I already configure the workspace as edit permissions, then dynamic RLS will never be applied?
Is that correct?
@Anmolgan
Yes, it is right. Just remember RLS will not applied if any user has edit permission, they can see everything on the report.
Paul
User | Count |
---|---|
77 | |
74 | |
42 | |
32 | |
28 |
User | Count |
---|---|
100 | |
93 | |
52 | |
50 | |
48 |