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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Rishabh-Maini
Helper II
Helper II

AAS Model Embedded Report

Hi all,

I have an embedded PowerBI report built on top of an AAS model which just fails to run. It was working fine when I was using it via import mode, but when the mode was changed to Live Connection, the report just won't run. There is no RLS which actually filters the data, but since "https://docs.microsoft.com/en-us/power-bi/developer/embedded/embedded-row-level-security#customdata-... says that we have to use RLS in order to embed the report, I created a role and added members to it. Unsure if I am supposed to write a DAX query to filter data anywhere? 

Below is the error:

11:12:36:747 USER_DEBUG [153]|DEBUG|Body: {"error":{"code":"InvalidRequest","message":"Creating embed token for accessing dataset *Dataset ID* requires effective identity to be provided"}}

I have gone through several articles, including:

https://prologika.com/power-bi-embedded-service-principals-and-ssas/
https://prologika.com/power-bi-embedded-service-principals-and-aas/
https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=net-cor...
https://sqlswimmer.com/2019/02/07/how-to-use-power-bi-embedded-for-your-customers/

I tried using effective identity, but I'm not sure if I'm passing the correct parameters.
Also, still unsure about the CustomData() function. And if so, where to use it? What are the modifications and whrere will they be implemented? 

Stuck with this issue for about 2 months to no avail. Is there a working sample code which I can refer to make this work?

Any and all help will be appreciated.

Thanks.



1 REPLY 1
v-janeyg-msft
Community Support
Community Support

Hi, @Rishabh-Maini 

 

So how do you use CustomData() function? Do you follow this step to set it up?

vjaneygmsft_0-1632121931577.png

 

You can reference this similar solved case, Hope it helps:

Solved: Azure Analysis Services RLS and Embedding - Microsoft Power BI Community

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.


Best Regards,

Community Support Team _ Janey

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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