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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
abdul452
Frequent Visitor

RLS not working on publishing report to the APP

RLS is working in the workspace locally, but not when published to the App. It's by default showing the stores for all users in the 'Users' table. I want to publish a stores report based on the RLS filter (userprincipalname)

 

Users and Stores tables are mapped on the Storekey column. Locally, the RLS is applied to the Stores table and I see only stores for a user based on userprincipalname. But when I publish the report to App, I see the stores for all the users in the Users table. RLS isn't being applied in the App

 

 

 

 

 

 

 

 

@VahidDM @arvindsingh802 @amitchandak @Greg_Deckler 

1 ACCEPTED SOLUTION

@abdul452 I say again, use the Share button:

Greg_Deckler_0-1632756179526.png

Sharing means that you can provide a link or direct access to the report, dashboard, etc. without that user being an Admin, Member, Contributor, etc. to the workspace itself.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

7 REPLIES 7
Greg_Deckler
Super User
Super User

@abdul452 How are you testing RLS in the App? Are you logging in to Power BI as a user with a specified RLS role?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler 

I’m logging in the app with a guest account. By default, App is showing the store data from all users.

 

* In my local I don’t have this issue with RLS, in the powerbi desktop. Report only shows the store data that the guest account has access to. 

@abdul452 And the guest account is not a member of the workspace and has been assigned the correct RLS role? Remember that workspace members are immune to RLS rules.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler @The guest account is a member of workspace where I published the App. 

How does the guest account access the report, If I don’t add him to the workspace in the first place?

@abdul452 You share the report with the guest user. If they are are Member of the workspace, RLS does not apply.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler Please see my responses below,

You share the report with the guest user.

  • Guest user means the login details that I use for PowerBI (or) Guest role in the 'view as' tab

If they are members of the workspace, RLS does not apply.

  • How can the Guest user view the report if he's not a member of that workspace?

@abdul452 I say again, use the Share button:

Greg_Deckler_0-1632756179526.png

Sharing means that you can provide a link or direct access to the report, dashboard, etc. without that user being an Admin, Member, Contributor, etc. to the workspace itself.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.