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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Arknef
New Member

Connection to Office 365 Management API - Formula Firewall

Following a post I found on how to do this, I immediately encountered the Formula Firewall issue. Even when using the template linked in the blog post. I wonder if something has changed in PowerBI?

 

Post here: https://prathy.com/2018/02/powerbi-audit-log-using-office365-management-api/

 

I started from scratch and determined the first instance of the firewall issue. When referencing the access token provided from:

 

https://login.windows.net/common/oauth2/token

 

in my query to the api:

 

https://manage.office.com/api/v1.0/MYTENANTDOMAIN.onmicrosoft.com/activity/feed/subscriptions/conten...

 

PowerBI gives me the formula firewall issue.

 

This is what I have to call the Management API (NOTE: the accessToken is directly from post above and does return a token)

 

 

let
    Source = Json.Document(
        Web.Contents(
            "https://manage.office.com/api/v1.0/MYTENANTDOMAIN.onmicrosoft.com/activity/feed/subscriptions/content?contentType=Audit.SharePoint", 
            [
                Headers = [
                    Authorization="Bearer "&accessToken&""
                ]
            ]
        )
    )
in
    Source

 

 

Just to test the query, I went to Postman and got an access token, pasted in place of "accessToken," and PowerBI connected. What I'm not getting here is why using this pattern hits the firewall and is there a way to get around it?

 

1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi @Arknef 

Firstly, please check last documents about office 365 management api.

https://www.blue-granite.com/blog/monitoring-adoption-with-office-365-audit-logs-and-power-bi-admin-...

https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-management-apis-overvie...

 

Please show your completed error messages here.

You could also enable diagnostic tracing to find more detailed error messages.

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors