<?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: [403] error on ExportToFile API request in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/403-error-on-ExportToFile-API-request/m-p/3527728#M45299</link>
    <description>&lt;P&gt;I've solved it now by changing the grant_type to 'password'.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2023 12:53:42 GMT</pubDate>
    <dc:creator>Noeleke1301</dc:creator>
    <dc:date>2023-11-10T12:53:42Z</dc:date>
    <item>
      <title>[403] error on ExportToFile API request</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/403-error-on-ExportToFile-API-request/m-p/3524326#M45281</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I keep getting a 403 response on my attempt to export a report to PDF in a Python script.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The report is published in a fabric trial workspace, so it is dedicated&lt;/LI&gt;&lt;LI&gt;All permissions are set correctly in my Azure app&lt;/LI&gt;&lt;LI&gt;I'm using clientId and client secret value for authentication&lt;/LI&gt;&lt;LI&gt;I can see in Azure that my authentication is succesful every time&lt;/LI&gt;&lt;LI&gt;I'm getting a token as response on the GenerateToken API, but when I use this token to trigger the ExportToFile, I get 403&lt;/LI&gt;&lt;LI&gt;When I use the "try out" button on the API documentation page and use&amp;nbsp;&lt;EM&gt;that&lt;/EM&gt;&amp;nbsp;given bearer token in my script, everything works fine&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Below permissions in my Azure app (they are not available as 'application'&amp;nbsp; permission, only as delegated):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Noeleke1301_0-1699514350756.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/994182i8B2BC66C10F2B028/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Noeleke1301_0-1699514350756.png" alt="Noeleke1301_0-1699514350756.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's happening here and how can I solve this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 07:21:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/403-error-on-ExportToFile-API-request/m-p/3524326#M45281</guid>
      <dc:creator>Noeleke1301</dc:creator>
      <dc:date>2023-11-09T07:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: [403] error on ExportToFile API request</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/403-error-on-ExportToFile-API-request/m-p/3527058#M45293</link>
      <description>&lt;P&gt;Nobody who can help me with this issue?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 06:56:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/403-error-on-ExportToFile-API-request/m-p/3527058#M45293</guid>
      <dc:creator>Noeleke1301</dc:creator>
      <dc:date>2023-11-10T06:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: [403] error on ExportToFile API request</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/403-error-on-ExportToFile-API-request/m-p/3527564#M45297</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/406455"&gt;@Noeleke1301&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You wrote:&amp;nbsp;&lt;SPAN&gt;I'm getting a token as response on the GenerateToken API,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Do you refer to the API for generating an embed token? The call to the "Export to File" API should be done with an AAD token (like any other API).&lt;/P&gt;&lt;P&gt;Did you check in the reponse message has additional information in the message body besides the returned error code?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 11:14:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/403-error-on-ExportToFile-API-request/m-p/3527564#M45297</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2023-11-10T11:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: [403] error on ExportToFile API request</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/403-error-on-ExportToFile-API-request/m-p/3527728#M45299</link>
      <description>&lt;P&gt;I've solved it now by changing the grant_type to 'password'.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 12:53:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/403-error-on-ExportToFile-API-request/m-p/3527728#M45299</guid>
      <dc:creator>Noeleke1301</dc:creator>
      <dc:date>2023-11-10T12:53:42Z</dc:date>
    </item>
  </channel>
</rss>

