<?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 Integrating PowerBI REST API's with service principal/app registration in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Integrating-PowerBI-REST-API-s-with-service-principal-app/m-p/1085724#M23615</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use these specific Power BI REST API's :&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;1) Export to File (PNG/PDF)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;2) Get Report&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;3) Export Report&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment I am able to get the content of a report (screenshot) in its desired format and use the other API's by using an access token which is retrieved using my own credentials (username &amp;amp; password). However, I want to use a service principal/app registration. I am able to get an access token using the client ID and client Secret of the SP/App registration however when passing this to the Power BI REST API I get a return message:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;API&amp;nbsp;is&amp;nbsp;not&amp;nbsp;accessible&amp;nbsp;for&amp;nbsp;application&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have made sure all the API permission for PowerBI is set under the App Registration already.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Has anyone come across the problem before?&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 12 May 2020 09:40:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-12T09:40:57Z</dc:date>
    <item>
      <title>Integrating PowerBI REST API's with service principal/app registration</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Integrating-PowerBI-REST-API-s-with-service-principal-app/m-p/1085724#M23615</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use these specific Power BI REST API's :&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;1) Export to File (PNG/PDF)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;2) Get Report&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;3) Export Report&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the moment I am able to get the content of a report (screenshot) in its desired format and use the other API's by using an access token which is retrieved using my own credentials (username &amp;amp; password). However, I want to use a service principal/app registration. I am able to get an access token using the client ID and client Secret of the SP/App registration however when passing this to the Power BI REST API I get a return message:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;API&amp;nbsp;is&amp;nbsp;not&amp;nbsp;accessible&amp;nbsp;for&amp;nbsp;application&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have made sure all the API permission for PowerBI is set under the App Registration already.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Has anyone come across the problem before?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 May 2020 09:40:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Integrating-PowerBI-REST-API-s-with-service-principal-app/m-p/1085724#M23615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-12T09:40:57Z</dc:date>
    </item>
  </channel>
</rss>

