<?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: Export paginated report to file forbidden in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Export-paginated-report-to-file-forbidden/m-p/3093764#M41394</link>
    <description>&lt;P&gt;H,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you saying that you're able to embed the report with your Service Principal? If so, then it means you've added the service principal to the report's workspace in Power BI, or otherwise the call to generate the embed token should've failed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In that case the same Service Principal should be able to call the "Export to File" API (same AAD bearer token).&lt;/P&gt;</description>
    <pubDate>Wed, 22 Feb 2023 18:27:06 GMT</pubDate>
    <dc:creator>AmosHersch</dc:creator>
    <dc:date>2023-02-22T18:27:06Z</dc:date>
    <item>
      <title>Export paginated report to file forbidden</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-paginated-report-to-file-forbidden/m-p/3093522#M41393</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm trying to use the "exportToFile" API.&lt;BR /&gt;However I keep getting back a status 403.&lt;BR /&gt;&lt;BR /&gt;I'm embedding a report in a website using the. powerbi-client package.&lt;BR /&gt;We are using an app registration in Azure in order to authenticate with the service.&lt;BR /&gt;This means that all visitors of the embedded report will be using the same access token.&lt;BR /&gt;&lt;BR /&gt;I have configured the needed permissions in Azure but I assume that this is not used since the exportToFile API makes a call directly to api.powerbi.com&lt;BR /&gt;Do we need to set some permissions in PowerBi itself as well or is it possibe to configure this with Azure?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 16:54:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-paginated-report-to-file-forbidden/m-p/3093522#M41393</guid>
      <dc:creator>Grasmachien</dc:creator>
      <dc:date>2023-02-22T16:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Export paginated report to file forbidden</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-paginated-report-to-file-forbidden/m-p/3093764#M41394</link>
      <description>&lt;P&gt;H,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you saying that you're able to embed the report with your Service Principal? If so, then it means you've added the service principal to the report's workspace in Power BI, or otherwise the call to generate the embed token should've failed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In that case the same Service Principal should be able to call the "Export to File" API (same AAD bearer token).&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 18:27:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-paginated-report-to-file-forbidden/m-p/3093764#M41394</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2023-02-22T18:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Export paginated report to file forbidden</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-paginated-report-to-file-forbidden/m-p/3094869#M41408</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/278935"&gt;@AmosHersch&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a developer and I have no idea how Power BI works.&lt;BR /&gt;I assume you are right about the Service Principal.&lt;BR /&gt;&lt;BR /&gt;So if I understand correct I should be able to add an&amp;nbsp;Authorization header to the call with the same access token in order to get the permissions to export?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any documentation about this?&lt;/P&gt;&lt;P&gt;There does not seem to be anything on this in the docs: &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/export-paginated-report" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/developer/embedded/export-paginated-report&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 08:30:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-paginated-report-to-file-forbidden/m-p/3094869#M41408</guid>
      <dc:creator>Grasmachien</dc:creator>
      <dc:date>2023-02-23T08:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Export paginated report to file forbidden</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Export-paginated-report-to-file-forbidden/m-p/3095310#M41410</link>
      <description>&lt;P&gt;When ever you call a Power BI API you need to send an authorization header with a token. It's not specific for this API.&lt;/P&gt;&lt;P&gt;Otherwise Power BI cannot know who's sending the request, and validate the permissions.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 12:07:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Export-paginated-report-to-file-forbidden/m-p/3095310#M41410</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2023-02-23T12:07:14Z</dc:date>
    </item>
  </channel>
</rss>

