Forum Discussion
Power BI Embedded Composite Model With RLS
- 2 years ago
This scenario is supported. You can embed a composite model with several connected datasets, each with its own RLS context.
As a general note, if you receive a "bad request" try to see the response body, it sometimes has additional information for the reason Power BI claims it's a bad reques.
The challenge for your scenraio is generating an embed token correctly. For generating an embed token for composite model with DirectQuery connection to additional semantic models (datasets) your request should contain all dataset IDs in the datasets list, and you should specify xmlaPermissions = ReadOnly for them.
See here for example: Embed Token - Generate Token - REST API (Power BI Power BI REST APIs) | Microsoft Learn
In your case you should also add the effective identitiy of each dataset which has RLS.
Hi Bahneby ,
Here are some offical blogs about how to embed report with RLS. I hope they could help you.
For reference:
Security in Power BI embedded analytics - Power BI | Microsoft Learn
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.