This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
If we use userprincipalname() we can map or restrict countries access, My question is how can we remove access for 100 people out of 1000 people in a table?
Solved! Go to Solution.
Hi @CharanIndukuri- you can create a table that maps users (UserPrincipalName()) to the countries or data they are allowed to access. Include a flag or a condition to identify the users who should have no access.
create RLS Table as like below:
create a RLS security table as below:
Users with Access = 0 are restricted from accessing any data.
you can define the role in modelling as like below:
[UserEmail] = USERPRINCIPALNAME() && [Access] = 1
In Power BI Desktop:
Go to the Modeling tab → Manage Roles.
Create a new role and apply the DAX rule above to the security table.
Publish the report to Power BI Service.
Assign users or groups to the RLS role in Power BI Service.
Proud to be a Super User! | |
Hi @CharanIndukuri- you can create a table that maps users (UserPrincipalName()) to the countries or data they are allowed to access. Include a flag or a condition to identify the users who should have no access.
create RLS Table as like below:
create a RLS security table as below:
Users with Access = 0 are restricted from accessing any data.
you can define the role in modelling as like below:
[UserEmail] = USERPRINCIPALNAME() && [Access] = 1
In Power BI Desktop:
Go to the Modeling tab → Manage Roles.
Create a new role and apply the DAX rule above to the security table.
Publish the report to Power BI Service.
Assign users or groups to the RLS role in Power BI Service.
Proud to be a Super User! | |
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 27 | |
| 23 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 50 | |
| 30 | |
| 25 | |
| 24 |