<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic PBI Embedded RLS Error: Creating embed token with multiple identities is not supported in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PBI-Embedded-RLS-Error-Creating-embed-token-with-multiple/m-p/773913#M20499</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am developing an App Owns Data web application in Python - Django. It's all working fine, but now I am trying to add Row Level Security to it, as mentioned in the docs from Power BI:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the same example pbix and in Power BI desktop the roles are working, also the report is embedded just fine without RLS. However, when I add the identities payload to the request the REST API gives me the following error message as the response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;b'{"error":{"code":"InvalidRequest","message":"Creating embed token with multiple identities is not supported"}}'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The simplified python code that is working looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PBI Embedded Error.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/187040iF1F51AA65141D301/image-size/large?v=v2&amp;amp;px=999" role="button" title="PBI Embedded Error.png" alt="PBI Embedded Error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I comment out the identities it gives me the embed token as usual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas why I'm getting this error?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Aug 2019 06:49:12 GMT</pubDate>
    <dc:creator>jayvandenbos</dc:creator>
    <dc:date>2019-08-23T06:49:12Z</dc:date>
    <item>
      <title>PBI Embedded RLS Error: Creating embed token with multiple identities is not supported</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBI-Embedded-RLS-Error-Creating-embed-token-with-multiple/m-p/773913#M20499</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am developing an App Owns Data web application in Python - Django. It's all working fine, but now I am trying to add Row Level Security to it, as mentioned in the docs from Power BI:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the same example pbix and in Power BI desktop the roles are working, also the report is embedded just fine without RLS. However, when I add the identities payload to the request the REST API gives me the following error message as the response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;b'{"error":{"code":"InvalidRequest","message":"Creating embed token with multiple identities is not supported"}}'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The simplified python code that is working looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PBI Embedded Error.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/187040iF1F51AA65141D301/image-size/large?v=v2&amp;amp;px=999" role="button" title="PBI Embedded Error.png" alt="PBI Embedded Error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I comment out the identities it gives me the embed token as usual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas why I'm getting this error?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 06:49:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBI-Embedded-RLS-Error-Creating-embed-token-with-multiple/m-p/773913#M20499</guid>
      <dc:creator>jayvandenbos</dc:creator>
      <dc:date>2019-08-23T06:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: PBI Embedded RLS Error: Creating embed token with multiple identities is not supported</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBI-Embedded-RLS-Error-Creating-embed-token-with-multiple/m-p/1552025#M26779</link>
      <description>&lt;P&gt;Did you manage to solve this? I need help on how to add the identity to the python sample on github to make RLS work for PBI embedding&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 18:38:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBI-Embedded-RLS-Error-Creating-embed-token-with-multiple/m-p/1552025#M26779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-15T18:38:56Z</dc:date>
    </item>
  </channel>
</rss>

