<?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 PBE with Service Principal: Creating embed token for accessing dataset requires effective identity in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PBE-with-Service-Principal-Creating-embed-token-for-accessing/m-p/2083931#M31868</link>
    <description>&lt;P&gt;We created a PBIX using a live connection to a SSAS database running in an Azure virtual machine. We published the PBIX to a workspace in Power BI Service, where the dataset connects to the SSAS database through an on-premise data gateway on the Azure VM. Reports from the PBIX display correctly in the Power BI Service portal, so we know the data gateway is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We now want to embed the reports in the "for customers" (app owns the data) sample in .NET Framework that we downloaded from Github. If we configure the web.config to supply MasterUser credentials, then the sample works. But if we use ServicePrincipal credentials, it fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We set up an AAD application and configured web.config following the instructions here:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal" target="_blank" rel="noopener"&gt;Embed Power BI content in an embedded analytics application with service principal and an application secret - Power BI | Microsoft Docs&lt;/A&gt;&amp;nbsp;The web.config file contains the correct values for&amp;nbsp;authenticationType, applicationId, workspaceId, reportId, applicationSecret, and tenant. But when we run the sample we get this error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Status: BadRequest (400)
Response: {"error":{"code":"InvalidRequest","message":"Creating embed token for accessing dataset xxx-xxx-xxx-xxx-xxx requires effective identity to be provided"}}
RequestId: xxx-xxx-xxx-xxx-xxx&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does Power BI Embedded even support this scenario? That is, when using a service principal, does Power BI embedded work with a dataset that has a live connection to a SSAS database via an on-premise data gateway? If so, why are we not providing an "effective identity"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@&lt;SPAN&gt;Xiaoxin Sheng&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Sep 2021 13:52:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-18T13:52:16Z</dc:date>
    <item>
      <title>PBE with Service Principal: Creating embed token for accessing dataset requires effective identity</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBE-with-Service-Principal-Creating-embed-token-for-accessing/m-p/2083931#M31868</link>
      <description>&lt;P&gt;We created a PBIX using a live connection to a SSAS database running in an Azure virtual machine. We published the PBIX to a workspace in Power BI Service, where the dataset connects to the SSAS database through an on-premise data gateway on the Azure VM. Reports from the PBIX display correctly in the Power BI Service portal, so we know the data gateway is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We now want to embed the reports in the "for customers" (app owns the data) sample in .NET Framework that we downloaded from Github. If we configure the web.config to supply MasterUser credentials, then the sample works. But if we use ServicePrincipal credentials, it fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We set up an AAD application and configured web.config following the instructions here:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal" target="_blank" rel="noopener"&gt;Embed Power BI content in an embedded analytics application with service principal and an application secret - Power BI | Microsoft Docs&lt;/A&gt;&amp;nbsp;The web.config file contains the correct values for&amp;nbsp;authenticationType, applicationId, workspaceId, reportId, applicationSecret, and tenant. But when we run the sample we get this error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Status: BadRequest (400)
Response: {"error":{"code":"InvalidRequest","message":"Creating embed token for accessing dataset xxx-xxx-xxx-xxx-xxx requires effective identity to be provided"}}
RequestId: xxx-xxx-xxx-xxx-xxx&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does Power BI Embedded even support this scenario? That is, when using a service principal, does Power BI embedded work with a dataset that has a live connection to a SSAS database via an on-premise data gateway? If so, why are we not providing an "effective identity"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@&lt;SPAN&gt;Xiaoxin Sheng&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Sep 2021 13:52:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBE-with-Service-Principal-Creating-embed-token-for-accessing/m-p/2083931#M31868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-18T13:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: PBE with Service Principal: Creating embed token for accessing dataset requires effective identi</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBE-with-Service-Principal-Creating-embed-token-for-accessing/m-p/2086499#M31894</link>
      <description>&lt;P&gt;UPDATE: We were able to prove that our ServicePrincipal registration works with datasets that connect through the on-premise data gateway to a SQL Server database instead of to SSAS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So again our question for Microsoft is: does Power BI embedded support ServicePrincipal authentication for a report whose dataset uses a live connection to a SSAS database via an on-premise data gateway? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If so, what additional steps are needed to avoid the&amp;nbsp;"effective identity" error?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If not, where is this limitation documented?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 14:36:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBE-with-Service-Principal-Creating-embed-token-for-accessing/m-p/2086499#M31894</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-20T14:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: PBE with Service Principal: Creating embed token for accessing dataset requires effective identi</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBE-with-Service-Principal-Creating-embed-token-for-accessing/m-p/2087429#M31910</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Power BI and SSAS both leverage AD so that means that any user you pass from Power BI to SSAS needs to be known in AD.&lt;/SPAN&gt;&lt;SPAN&gt;You must grant the service principal&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ReadOverrideEffectiveIdentity&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;permission. Otherwise, the service principal can’t delegate the user identity to the gateway.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please refer to :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://prologika.com/power-bi-embedded-service-principals-and-ssas/" target="_self"&gt;https://prologika.com/power-bi-embedded-service-principals-and-ssas/&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 02:35:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBE-with-Service-Principal-Creating-embed-token-for-accessing/m-p/2087429#M31910</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2021-09-21T02:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: PBE with Service Principal: Creating embed token for accessing dataset requires effective identi</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBE-with-Service-Principal-Creating-embed-token-for-accessing/m-p/2088934#M31925</link>
      <description>&lt;P&gt;Thank you V-liani. The blog post you linked explains what to do. Please put this information in the Microsoft documentation! We shouldn't need to chase down blogs to find this out.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 14:23:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBE-with-Service-Principal-Creating-embed-token-for-accessing/m-p/2088934#M31925</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-21T14:23:28Z</dc:date>
    </item>
  </channel>
</rss>

