Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
arjan901
Regular Visitor

403 error on API through ADF

Hi Everyone,

 

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.

 

I set it up as follows

  1. Creating an Azure Security Group (SG-Power-BI-API)
  2. Added the Azure DataFactory as a member to that security group
  3. Adding the security group to the Power BI Admin portal 'Allow service principals to user Power BI API's'
  4. Created a linked server in the ADF
    arjan901_0-1671448321933.png

     

But i keep getting the following error message, what is going wrong? since i did this already a coupole of times without isses

 

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: https://api.powerbi.com/v1.0/myorg/admin/activityevents?startDateTime='2022-11-19T00:00:00.000Z'&end...'. Response: {"Message":"API is not accessible for application"},Source=Microsoft.DataTransfer.ClientLibrary,'

1 REPLY 1
AmosHersch
Microsoft Employee
Microsoft Employee

Hi @arjan901 ,

 

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?

Enable service principal authentication for read-only admin APIs - Power BI | Microsoft Learn

 

 

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.