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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
tfraletti
Helper I
Helper I

RLS + Embed Link. How can i use RLS with PBI email&pass auth to access a report outside PBI Service?

Hello everyone, hope you're doing well.

 

I have a client that wants to use Power BI Reports on his on application. The way we're approaching right now is basically creating a share link for the reports and then he adds this link to his application - which works well for reports that doesn't require RLS.

 

But now came the day that he needs to limit some users access data using RLS. He wants that the report consumers could access the report from inside his app and use the already autenticated e-mail and pass from microsoft account to consider the RLS roles.

 

The question is, how can i do that? Because when i create RLS roles, the embed link option desappears. Also, the reversal, if i try to check which user is logged in accessing the report using USERPRINCIPALNAME() with a shared link, the return is NULL, ie. accessing the web shared report though the shared link doesn't capture the user logged by standard.

 

Thanks in advance for your support.

 

Stay safe.

1 ACCEPTED SOLUTION

sorry, just figured out. since i don't have a pro accoubt myself, i couldn't see the publish to site or portal option, but testing it on a power bi pro account, this would be my way to go. cheers.

View solution in original post

7 REPLIES 7
GilbertQ
Super User
Super User

Awesome thanks for letting us know!





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

Proud to be a Super User!







Power BI Blog

GilbertQ
Super User
Super User

Hi @tfraletti 

 

You could use the Secure Embed option?

 

Embed a report in a secure portal or website - Power BI | Microsoft Docs





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

Proud to be a Super User!







Power BI Blog

sorry, just figured out. since i don't have a pro accoubt myself, i couldn't see the publish to site or portal option, but testing it on a power bi pro account, this would be my way to go. cheers.

GilbertQ
Super User
Super User

Hi @tfraletti 

 

Yes it would be possible, as long as they log in with their credentials it will work.





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

Proud to be a Super User!







Power BI Blog

@GilbertQ, could you please elaborate which would be the link used for the users to access the report outside the power bi service environment? because any link i got on power bi service redirect people inside of it.

GilbertQ
Super User
Super User

Hi @tfraletti 

 

When using RLS you would need to get each user to log into the PBI Service in order to get the UserPrincipalName to find out who they are and to then apply the RLS.

 

From your message it sounds like you are using Publish to Web Link. If you are that is a limitaiton of publish to web in that you CANNOT use RLS with Publish to Web.

 

Publish to web from Power BI - Power BI | Microsoft Docs

 

To work around this you would need to get a Power BI Pro license for each user who access the report.





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

Proud to be a Super User!







Power BI Blog

Hello,

 

they all have pro licenses already, they just want to see the report outside power bi service, but considering RLS. is it possible?

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors