Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredJoin us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered
Scenario
You have implemented Row Level Security to restrict users to view data accordingly but you want to create a dynamic Admin role that can be assigned to any user to view all data and at the same time, you do not want to assign Admin permission to the user.
Here is the current model
Current RLS Table
User | DeptID |
abcd@company.com | A |
abcd@company.com | B |
C | |
D | |
C |
Data Preparation
For this, you need to
User | AdminRole |
abcd@company.com | 0 |
0 | |
1 |
UserTable =
UNION(
SUMMARIZE(RLS,RLS[User],RLS[DeptID]), CROSSJOIN(SUMMARIZE(FILTER(User,User[AdminRole]=1),User[User]),SUMMARIZE(Department,Department[DeptID])))
Hide both Admin table & RLS table from the model and use this “UserTable” as RLS table to restrict users to view appropriate data
Testing
Testing as a Normal User
Testing as Admin User
You see that you can now control your users to make them admin thru the control table rather than assigning Admin permissions in the workspace or at any level.
Hopefully, this will help developers to have more control in assigning admin permission to users on data.
Regards
Farhan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.