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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Use RLS in power bi url

Hi everyone, 

 

I have embedded a power bi report inside salesforce with an url inside an iframe, like the picture below : 

ihoumel_0-1632612936409.png

But now, I have integrated RLS in my report and I would like to know if it is possible to use the roles created, directly in the url as filter parameters ? 

 

I've searched on the web and they suggested to use embed token but I don't know where and how to use it inside a salesforce page.

 

Thank you for your help !

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello @v-shex-msft@Greg_Deckler 

 

I figured out how to use RLS in an embedded scenario. In fact, since I used secure embed the RLS is automatically supported as it is written in this article : https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-embed-secure 

 

I have just to be sure that the persons who have access to this report have only read permissions. 

It is working really well for me ! 

 

Thanks

View solution in original post

4 REPLIES 4
v-shex-msft
Community Support
Community Support

HI @Anonymous,

AFAIK, current power bi not able to integrate RLS with URL. I'd like to suggest use URL filters instead.

Filter a report using query string parameters in the URL - Power BI | Microsoft Docs

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Greg_Deckler
Super User
Super User

@Anonymous How did you generate the embed token, is it a Publish to web embed token or something else? RLS cannot be achieved using URL parameters.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hello @v-shex-msft@Greg_Deckler 

 

I figured out how to use RLS in an embedded scenario. In fact, since I used secure embed the RLS is automatically supported as it is written in this article : https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-embed-secure 

 

I have just to be sure that the persons who have access to this report have only read permissions. 

It is working really well for me ! 

 

Thanks

Anonymous
Not applicable

Hi @Greg_Deckler,

 

In fact I didn't generate the embed token yet. 

I started looking at this link : https://docs.microsoft.com/en-us/power-bi/developer/embedded/embedded-row-level-security

But I don't know where to inject this code in the visualforce page : 

ihoumel_0-1632684344186.png

Any idea ? 

 

Or maybe another way to use the rls in an embedded power bi report ? 

 

Thank you very much 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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