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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Razorbx13
Post Patron
Post Patron

RLS Security Issue in Service

Hi all, hopefully you can help me with this issue.  Maybe I missed a step.  I have a simple table with a Security Key and a Username.  Username is email.  I setup a Role to this table and filter as Username = USERPRINCIPALNAME().  In the desktop I us "View as Role" and it works fine.  Filters for my email/username.  I publish to Service and associated my email in the security for the dataset and then Test the Role.  Works fine.  Exit and then go create a report on this dataset.  NO SECURITY APPLIED.  Should it not be working?  Did I miss a step?  This is about as simple as it gets, and is Step 1 in my security process.  Thanks in advance!

1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi @Razorbx13 


The reason you see all the data is because you created the dataset. And a creator of a dataset will ALWAYS see all the data (or is the administrator of the data)

 

Try and do this with a user who either has viewer role in the app workspace or share it via an App or report and it will apply the RLS.





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

Proud to be a Super User!







Power BI Blog

View solution in original post

2 REPLIES 2
GilbertQ
Super User
Super User

Hi @Razorbx13 


The reason you see all the data is because you created the dataset. And a creator of a dataset will ALWAYS see all the data (or is the administrator of the data)

 

Try and do this with a user who either has viewer role in the app workspace or share it via an App or report and it will apply the RLS.





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

Proud to be a Super User!







Power BI Blog

Gilbert, thanks this worked!  So for RLS to work, you cannot make the user have Member or Contributor access?  Has to be viewer access?  If so, I assume then Analyze in Excel is out of the question too?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.