<?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 Re: Accessing dataset  requires effective identity username identical to the caller's principal name in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/1808851#M29194</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Service principal mode throws the same error. I have verified Service principal works correctly when opening connection to Power BI report with SSAS on premise (I just had to add Service principal id to the on prem gateway).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I am in the same scenario of my first post.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 11:57:17 GMT</pubDate>
    <dc:creator>JavierOrd</dc:creator>
    <dc:date>2021-04-27T11:57:17Z</dc:date>
    <item>
      <title>Accessing dataset  requires effective identity username identical to the caller's principal name.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/1797038#M29106</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having some issues adquiring token to access Power BI reports with Azure Analysis Services sources.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My web app is App Owns Data with a Master User account who passes an effective identity to the reports. When the effective identity is different from Master User (most cases) it throws the next error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Creating embed token for accessing dataset&amp;nbsp; requires effective identity username to be identical to the caller's principal name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the idea of Power BI embedded is allowing users outside my organization to have access to my reports, so I do not understand this error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: import mode reports work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 08:52:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/1797038#M29106</guid>
      <dc:creator>JavierOrd</dc:creator>
      <dc:date>2021-04-21T08:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing dataset  requires effective identity username identical to the caller's principal name</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/1801478#M29138</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/297225"&gt;@JavierOrd&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Have you tried to use the 'service principal' mode to embed these contents? AFAIK, 'master user' mode seems to share the main user credentials for other user usages.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=net-core" target="_self"&gt;Tutorial: Embed Power BI content using a sample embed for your customers application&lt;/A&gt;&amp;nbsp; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 02:04:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/1801478#M29138</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-23T02:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing dataset  requires effective identity username identical to the caller's principal name</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/1807980#M29190</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will explore service pricipal mode and let you know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 07:20:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/1807980#M29190</guid>
      <dc:creator>JavierOrd</dc:creator>
      <dc:date>2021-04-27T07:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing dataset  requires effective identity username identical to the caller's principal name</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/1808851#M29194</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Service principal mode throws the same error. I have verified Service principal works correctly when opening connection to Power BI report with SSAS on premise (I just had to add Service principal id to the on prem gateway).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I am in the same scenario of my first post.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 11:57:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/1808851#M29194</guid>
      <dc:creator>JavierOrd</dc:creator>
      <dc:date>2021-04-27T11:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing dataset  requires effective identity username identical to the caller's principal name</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/1813240#M29224</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/297225"&gt;@JavierOrd&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;How did you configure the service principal? &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;AFAIK, you need to create a security group on the azure site to add the service principal as a group member. Then you need to add that group to power bi workspace that stores embedded content.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;For gateway data source settings, you can configure it to work for workspace members.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 07:29:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/1813240#M29224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-29T07:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing dataset  requires effective identity username identical to the caller's principal name</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/1952167#M30477</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/297225"&gt;@JavierOrd&lt;/a&gt;&amp;nbsp;,&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;unfortunatly we have the same issue.&lt;BR /&gt;We run Power BI embedded with Azure Analysis Services, until now with PBI MasterUser for authentification. As recommanded by Microsoft, we want to use a ServicePrincipal for the authentification.&lt;BR /&gt;We use the newest apps-own-data VS Solution and modified the Souce Code:&lt;/P&gt;&lt;P&gt;identities: new List&amp;lt;EffectiveIdentity&amp;gt; { new EffectiveIdentity(&lt;BR /&gt;username: "App ID ", // App ID from Azure&lt;BR /&gt;datasets: new List&amp;lt;string&amp;gt; { "Dataset ID" },&lt;BR /&gt;roles: new List&amp;lt;string&amp;gt;() { "RoleA" }&lt;BR /&gt;// customData : "XXX"&lt;BR /&gt;) }&lt;/P&gt;&lt;P&gt;But no matter which Account we use for the username (SP Application ID, Object ID), we get the following error:&lt;BR /&gt;Creating embed token for accessing dataset &amp;lt;my-data-set-guid&amp;gt; requries effective identity username to be identical to the caller's principal name.&lt;BR /&gt;The settings from the ServicePrincipal and in Power BI Service are exactly as described in the MS documentations.&lt;BR /&gt;Any Ideas, or Solutions?&lt;BR /&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 12:08:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/1952167#M30477</guid>
      <dc:creator>GunnarHo</dc:creator>
      <dc:date>2021-07-12T12:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing dataset  requires effective identity username identical to the caller's principal name</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/2037725#M31343</link>
      <description>&lt;P&gt;Hi GunnarHo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you able to find the solution for your query using Service Principal for authentication?&lt;/P&gt;&lt;P&gt;I am trying to export Power BI reports (PDF) based on RLS for users, but it comes with the same error.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ritesh&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 12:55:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/2037725#M31343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-25T12:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing dataset  requires effective identity username identical to the caller's principal name</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/2043245#M31399</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Ritesh,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;yes, you have to use the&amp;nbsp;&lt;/SPAN&gt;Principal object ID of the Service Principal instead of the&amp;nbsp;Application object ID.&lt;/P&gt;&lt;P&gt;Here you can find further informations:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embedded-troubleshoot#what-is-the-difference-between-application-object-id-and-principal-object-id" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded/embedded-troubleshoot#what-is-the-difference-between-application-object-id-and-principal-object-id&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In our Scanario, this was the solution, now ist works.&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 15:54:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/2043245#M31399</guid>
      <dc:creator>GunnarHo</dc:creator>
      <dc:date>2021-08-27T15:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing dataset  requires effective identity username identical to the caller's principal name</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/2223103#M33310</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am also receiving an error [ Accessing Dataset requires an effective identity to be provided ]&lt;/P&gt;&lt;P&gt;Iam trying to embed a report using service principle app owns data methods.&lt;/P&gt;&lt;P&gt;My report has live connection to Azure analysis services.&lt;/P&gt;&lt;P&gt;I have also granted the admin concent to the app still throwing error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If any one faced same issue please to resolve this&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 14:37:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/2223103#M33310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-06T14:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing dataset  requires effective identity username identical to the caller's principal name</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/3149626#M41896</link>
      <description>&lt;P&gt;This post explains how to fix this issue:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/56050580/unable-to-generate-embed-token-for-accessing-dataset-due-to-missing-roles-in-eff" target="_blank"&gt;https://stackoverflow.com/questions/56050580/unable-to-generate-embed-token-for-accessing-dataset-due-to-missing-roles-in-eff&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 11:23:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/3149626#M41896</guid>
      <dc:creator>Joel-Reaccess</dc:creator>
      <dc:date>2023-03-23T11:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing dataset  requires effective identity username identical to the caller's principal name</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/3209031#M42399</link>
      <description>&lt;P&gt;I am gettimg the same error. Does anyone have any solution to this.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 10:27:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/3209031#M42399</guid>
      <dc:creator>Deepanshi_Ranka</dc:creator>
      <dc:date>2023-04-27T10:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing dataset  requires effective identity username identical to the caller's principal name</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/3794796#M51080</link>
      <description>&lt;P&gt;Encountered the same problem, I have a suspicion that due to the fact that I am working across two tenants this may be the cause.&amp;nbsp;&lt;BR /&gt;Did you set the SP as Server Admin for your AAS? I found some documentation saying that this is necessary and it'll be my next step. Here is the link:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-azure-analysis-services?tabs=service-principal-token" target="_blank"&gt;Embed a Power BI report with an Azure Analysis Services (AAS) database - Power BI | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 16:33:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Accessing-dataset-requires-effective-identity-username-identical/m-p/3794796#M51080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-27T16:33:03Z</dc:date>
    </item>
  </channel>
</rss>

