<?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 PowerBI Admin Rest API - Azure app registration  - dont know how to connect from Postman in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Admin-Rest-API-Azure-app-registration-dont-know-how-to/m-p/2118384#M32249</link>
    <description>&lt;P&gt;We are trying to build a database with PowerBI auditing information.&lt;/P&gt;&lt;P&gt;In our case, the ideal solution is, that we want to load&amp;nbsp; data from the REST APIs towards AWS. (I know.. don't ask... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have setup an Azure AD App registration for this. Inspired by several youtube videos and this blog post:&lt;BR /&gt;&lt;A href="https://carldesouza.com/how-to-call-the-power-bi-rest-api-from-postman/" target="_blank" rel="noopener"&gt;How to Call the Power BI REST API from Postman - Carl de Souza&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For this app, we have requested our office tenant admin to approve Tenant.Read.All privileges.&lt;BR /&gt;That is probably a little different than what Carl described. I dont want to use the "delegated permissions" since I dont want to logon with my corporate ID, but I want to login with a clientID and secret coming from our AWS environment.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is now, that I am trying to connect from Postman, but I am failing.&lt;BR /&gt;First I am trying to do a Post to get a bearer token. This seems succesful, although I am wondering: should I also see a "scope" mentioned in the result? I have seen it with other screenshots on the web.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, while trying to do a simple get, using this bearer token, I am getting a "401 unauthorized".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please suggest what I am doing wrong? Any suggestion would be highly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;meanwhile I came across this article about Service Principals&lt;BR /&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/admin/read-only-apis-service-principal-authentication" target="_blank"&gt;Enable service principal authentication for read-only admin APIs - Power BI | Microsoft Docs&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Would that be the right way to go? I tried some of the steps, and went to a different error message:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Oct 2021 13:58:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-10-06T13:58:16Z</dc:date>
    <item>
      <title>PowerBI Admin Rest API - Azure app registration  - dont know how to connect from Postman</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Admin-Rest-API-Azure-app-registration-dont-know-how-to/m-p/2118384#M32249</link>
      <description>&lt;P&gt;We are trying to build a database with PowerBI auditing information.&lt;/P&gt;&lt;P&gt;In our case, the ideal solution is, that we want to load&amp;nbsp; data from the REST APIs towards AWS. (I know.. don't ask... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have setup an Azure AD App registration for this. Inspired by several youtube videos and this blog post:&lt;BR /&gt;&lt;A href="https://carldesouza.com/how-to-call-the-power-bi-rest-api-from-postman/" target="_blank" rel="noopener"&gt;How to Call the Power BI REST API from Postman - Carl de Souza&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For this app, we have requested our office tenant admin to approve Tenant.Read.All privileges.&lt;BR /&gt;That is probably a little different than what Carl described. I dont want to use the "delegated permissions" since I dont want to logon with my corporate ID, but I want to login with a clientID and secret coming from our AWS environment.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is now, that I am trying to connect from Postman, but I am failing.&lt;BR /&gt;First I am trying to do a Post to get a bearer token. This seems succesful, although I am wondering: should I also see a "scope" mentioned in the result? I have seen it with other screenshots on the web.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, while trying to do a simple get, using this bearer token, I am getting a "401 unauthorized".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please suggest what I am doing wrong? Any suggestion would be highly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;meanwhile I came across this article about Service Principals&lt;BR /&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/admin/read-only-apis-service-principal-authentication" target="_blank"&gt;Enable service principal authentication for read-only admin APIs - Power BI | Microsoft Docs&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Would that be the right way to go? I tried some of the steps, and went to a different error message:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 13:58:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Admin-Rest-API-Azure-app-registration-dont-know-how-to/m-p/2118384#M32249</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-06T13:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI Admin Rest API - Azure app registration  - dont know how to connect from Postman</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Admin-Rest-API-Azure-app-registration-dont-know-how-to/m-p/2121020#M32275</link>
      <description>&lt;P&gt;I maybe won't help to much with this but, for the app that we have, we need to invite the user as a guest to the tenant and add him to the security group on the Azure ad, then that group need to be part of the app access. When you create any app on Azure, you also have enterprise applications and under your app, you need to add that group otherwise, they won't be able to access it.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 08:42:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Admin-Rest-API-Azure-app-registration-dont-know-how-to/m-p/2121020#M32275</guid>
      <dc:creator>JoeBlackBlood</dc:creator>
      <dc:date>2021-10-07T08:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI Admin Rest API - Azure app registration  - dont know how to connect from Postman</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Admin-Rest-API-Azure-app-registration-dont-know-how-to/m-p/2121222#M32284</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, the link is the right way to do it. You need to:&lt;/P&gt;&lt;P&gt;1. Create the security group&lt;/P&gt;&lt;P&gt;2. Add the service principal in a security group.&lt;/P&gt;&lt;P&gt;3. Enable the&amp;nbsp; "Allow service principals to use read only ..." feature&lt;/P&gt;&lt;P&gt;4. Add the security group in "Allow service principals to use read only ..."&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Re-test after 10-15 minutes (AAD groups and member propagation in all services)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 09:57:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Admin-Rest-API-Azure-app-registration-dont-know-how-to/m-p/2121222#M32284</guid>
      <dc:creator>alex_chiraples</dc:creator>
      <dc:date>2021-10-07T09:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI Admin Rest API - Azure app registration  - dont know how to connect from Postman</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Admin-Rest-API-Azure-app-registration-dont-know-how-to/m-p/2121229#M32285</link>
      <description>&lt;P&gt;Indeed! I just figured out that this works!&lt;/P&gt;&lt;P&gt;It took quite some time to learn that this was the right approach.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your support!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 09:59:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-Admin-Rest-API-Azure-app-registration-dont-know-how-to/m-p/2121229#M32285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-07T09:59:36Z</dc:date>
    </item>
  </channel>
</rss>

