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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Rnaval
Post Patron
Post Patron

User Access Control \ Rights \ Permissions Question

How do I control user access? I only want users to see their agency data, not another agency's data.

4 REPLIES 4
stoic-harsh
Resolver IV
Resolver IV

Hey @Rnaval,

First, ensure your dataset contains user emails to map each user to their respective department. If not, create a mapping table (UserEmail vs Department) and relate it to your main data.

 

Setting up RLS in PBI Desktop:

Go to Modeling > Manage Roles (under security) > Create a role (say, Dept Filter) and apply this DAX filter:

// DAX
// USERPRINCIPALNAME() returns the logged-in user's email LOWER([UserEmail]) == LOWER(USERPRINCIPALNAME())

To test, go to Modeling > View As (next to Manage Roles) > select above role + Other User and enter a test email.

After Publishing, go to Semantic Model > ... > Security > Assign users to the role. Prefer AAD Security Groups over individual emails (much more scalable this way), or you can add individual users.

 

Scenarios:

  • Users with Contributor or higher workspace permissions bypass RLS entirely.
  • RLS only enforces for Viewers, or users, the report is directly shared with.
  • Users not added to Security will hit an "Access Denied" error instead of seeing filtered data.

Hope it helps! Please do share if you find more efficient approaches.

Best,

Harshit

Thanks, so how do you assign which pages specific users can access?

Hey @Rnaval,

RLS is enforced at the model level, and hence can't be restricted to specific pages in PBI. So once RLS is applied to a table, every page using it respect the same RLS filters. One approach is to use a separate table for that page and apply RLS only to this model. But depending on your use-case, there can be more work-arounds. Please share if you have a specific problem statement.

Best,

Harshit

Bipin-Lala
Super User
Super User

Hi @Rnaval ,

 

Can you please elaborate on your question, the community would be able to answer better.

 

Thanks!




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

Proud to be a Super User!


Regards,

Bipin Lala | Business Intelligence Developer



Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.