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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Embeded powerbi report with service principal using onpremise SSAS as dataset

Hi,

i've got an on premise SSAS instance which is configured in powerbi using gateway, configuration is proper as report using dataset from SSAS works from app.powebi and even from embedded report if token is requested using username/password flow.

From security reasons our client demand was to introduce service principal, it is turned on, set as admin on workspace, i've added 'ReadOverrideEffectiveIdentity' to service principle using powerbi dataset api.

 

Currently when i request embedd token using clientSecret (service principal) it requires EffectiveIdentity to be passed  (which was not passed before in this path).

I;ve tested two different approaches:

-passed EffectiveIdentity with identifier = ServicePrincipalObjectId

    * i can see in developer tools that https://wabi-north-europe-redirect.analysis.windows.net/powerbi/metadata/models/5330774/?modelOption...

returned 401

 

-passed currently logged userId (this is normally passed for other datasets pointing directly to database):

    *report is embedded but when it's loadingvisuals i get 401 and i can see that 'https://wabi-north-europe-                  redirect.analysis.windows.net/explore/querydata'

 

returned      "{"error":{"code":"RLSNotAuthorizedForImpersonation","pbi.error":{"code":"RLSNotAuthorizedForImpersonation","parameters":{},"details":[],"exceptionCulprit":1}}}"


Do you have any ideas what should i check next and what is wrong?

 

I've based my work mostly on:

https://prologika.com/power-bi-embedded-service-principals-and-ssas/

https://docs.microsoft.com/en-us/power-bi/developer/embedded/embedded-row-level-security#on-premises...

https://docs.microsoft.com/en-us/power-bi/developer/embedded/embedded-row-level-security#working-wit...

Thanks in advance

0 REPLIES 0

Helpful resources

Announcements
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.