<?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 API through ADF in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/403-error-on-API-through-ADF/m-p/2976627#M40378</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/111563"&gt;@arjan901&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only reason I can think of is related to step 3, you allow service principals from the security group to call user APIs, but the API you're trying to call is an admin API. There's a different tenant level switch to allow service principals to call admin APIs. Did you also allow the same security group to call admin APIs?&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/enterprise/read-only-apis-service-principal-authentication" target="_blank"&gt;Enable service principal authentication for read-only admin APIs - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Dec 2022 13:13:13 GMT</pubDate>
    <dc:creator>AmosHersch</dc:creator>
    <dc:date>2022-12-19T13:13:13Z</dc:date>
    <item>
      <title>403 error on API through ADF</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/403-error-on-API-through-ADF/m-p/2976412#M40376</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created an ADF pipeline to extract the user activity from the Power BI API. I've installed this at a dozen customers but now i have one customer where it won't work and i don't know why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set it up as follows&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Creating an Azure Security Group (SG-Power-BI-API)&lt;/LI&gt;&lt;LI&gt;Added the Azure DataFactory as a member to that security group&lt;/LI&gt;&lt;LI&gt;Adding the security group to the Power BI Admin portal 'Allow service principals to user Power BI API's'&lt;/LI&gt;&lt;LI&gt;Created a linked server in the ADF&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="arjan901_0-1671448321933.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/843055iF88593C8B2A6EBD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="arjan901_0-1671448321933.png" alt="arjan901_0-1671448321933.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;But i keep getting the following error message, what is going wrong? since i did this already a coupole of times without isses&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ErrorCode=RestCallFailedWithClientError,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Rest call failed with client error, status code 403 Forbidden, please check your activity settings. Request URL: &lt;A href="https://api.powerbi.com/v1.0/myorg/admin/activityevents?startDateTime='2022-11-19T00:00:00.000Z'&amp;amp;endDateTime='2022-11-19T23:59:59.999Z" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/admin/activityevents?startDateTime='2022-11-19T00:00:00.000Z'&amp;amp;endDateTime='2022-11-19T23:59:59.999Z&lt;/A&gt;'. Response: {"Message":"API is not accessible for application"},Source=Microsoft.DataTransfer.ClientLibrary,'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 11:13:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/403-error-on-API-through-ADF/m-p/2976412#M40376</guid>
      <dc:creator>arjan901</dc:creator>
      <dc:date>2022-12-19T11:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: 403 error on API through ADF</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/403-error-on-API-through-ADF/m-p/2976627#M40378</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/111563"&gt;@arjan901&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only reason I can think of is related to step 3, you allow service principals from the security group to call user APIs, but the API you're trying to call is an admin API. There's a different tenant level switch to allow service principals to call admin APIs. Did you also allow the same security group to call admin APIs?&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/enterprise/read-only-apis-service-principal-authentication" target="_blank"&gt;Enable service principal authentication for read-only admin APIs - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 13:13:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/403-error-on-API-through-ADF/m-p/2976627#M40378</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2022-12-19T13:13:13Z</dc:date>
    </item>
  </channel>
</rss>

