Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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! | |
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
38 | |
35 |