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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
paguy215
Helper III
Helper III

Row Level Security - only allow certain users

Hello,

 

How can I set RLS to only allow specific users.  Ideally I'd like to allow only managers to view only their data, which I can do with username.  However I'd also like to allow some specific people to view everyone's data.   How do I allow both...and if I can't, I'd rather have it where those specific people can view everyone's data

2 REPLIES 2
Anonymous
Not applicable

Hi @paguy215 ,

In Power BI, you can achieve your desired Row-Level Security (RLS) setup by creating different roles with specific filters.

 

You can create two roles like Basic User Role and Head Office Role

Basic User Role filters data based on the user’s department, Head Office Role can create a second role with no filters. Add the head office users to this role in PowerBI.com. They will be able to view all data unrestrictedly.

 

Also if you don’t have a security group for head office users, you can keep all settings in Power BI Desktop, then you can use a DAX filter in the RLS.

All Users Role =
VAR _Role =
    MAXX (
        FILTER ( UsersTable, UsersTable[UserEmail] = USERNAME () ),
        UsersTable[Department]
    )
RETURN
    IF ( _Role = "Head Office", TRUE (), [UserEmail] = USERNAME () )

You can read this topic for a further study: Solved: RLS - Allow certain users to see all. - Microsoft Fabric Community

 

 

 

Best Regards

Yilong Zhou

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

lbendlin
Super User
Super User

Remember that if you have conflicting RLS rules applied to the same user then the more permissive rule wins.

 

Create a Role where the RLS rule simply states "TRUE()"  and put these people under that role.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.