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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Peter_23
Advocate V
Advocate V

Dynamic RLS and groups

Hi there, in this time, I'm working with dynamic RLS so I have a dim_table_security and I'm implemented RLS in 4 diferents roles, admin, country, state, city, with their user principal name, e.g ted@org = US ,  tom@org  =  Kansas ; It's fine. So I'm trsting with roles and username is OK. but in the service It's requiere to apply groups, not user by user. So my question is:  Do it need create one group by role or one group for all roles? 

🤔

thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @Peter_23 

You can create a new security group in your authentication service, such as Azure Active Directory. Create separate groups for each role (e.g., Admin, Country, State, City). Add the appropriate users to the group of the role they belong to. For example, add admin users to the Administrators group, add country level users to the country group, and so on.

Next, in your data model, configure RLS rules based on the group to which the user belongs. You can use DAX expressions in Power BI to define RLS rules to ensure that only users of a specific group have access to the corresponding data.

Publish the configured data model to the Power BI service. Then test whether different groups of users can only access the data they are authorized to.

vyohuamsft_0-1726465718375.png

vyohuamsft_1-1726465735817.png

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

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

2 REPLIES 2
Anonymous
Not applicable

Hi, @Peter_23 

You can create a new security group in your authentication service, such as Azure Active Directory. Create separate groups for each role (e.g., Admin, Country, State, City). Add the appropriate users to the group of the role they belong to. For example, add admin users to the Administrators group, add country level users to the country group, and so on.

Next, in your data model, configure RLS rules based on the group to which the user belongs. You can use DAX expressions in Power BI to define RLS rules to ensure that only users of a specific group have access to the corresponding data.

Publish the configured data model to the Power BI service. Then test whether different groups of users can only access the data they are authorized to.

vyohuamsft_0-1726465718375.png

vyohuamsft_1-1726465735817.png

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

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

Kaviraj11
Solution Sage
Solution Sage

Hi,

 

Normally, if you have created one RLS roles then one group for all roles is fine but if you have multiple roles created then create specific group by roles.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.