Share via

Does MSAppProxy work for SharePoint (on-prem) webhooks

Kenzo De Ridder 80 Reputation points
2023-11-22T08:32:13.89+00:00

We're currently developing for a SharePoint Server Subscription instance.
We want/need to use SharePoint list webhooks.
These work when I use ngrok as a proxy for my development environment.
When I publish my backend app to our webserver, it is unable to successfully create webhook subscriptions.
This webserver is not reachable from outside our company's network, unless the MS app proxy('s URL) (https://learn.microsoft.com/en-us/entra/identity/app-proxy/application-proxy) is used.
When I run ngrok on that same webserver (and use that url to create a subscription), it is able to create subscriptions.
In the same backend app, webhook subscriptions for users' email accounts are created/used (via Microsoft Graph), and those do work.
So we have Microsoft Graph that's able to reach our application behind the MSAppProxy and SharePoint that's isn't able to reach our application behind the MSAppProxy.
I've checked the incoming traffic on that webserver and it never receives a request from SharePoint when the MSAppProxy url is being used, so it's like it's being blocked at the MSAppProxy level.

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-11-22T21:30:06.2533333+00:00

    Hi @Kenzo De Ridder , yes, MSAP can be used to publish SharePoint Server Subscription webhooks to the internet. However, there are some considerations to keep in mind.

    Make sure that your SharePoint Server Subscription instance is configured to use MSAP as a reverse proxy. This involves configuring the SharePoint Server Subscription instance to trust the MSAP certificate and configuring the MSAP connector to forward traffic to the SharePoint Server Subscription instance.

    Once you have configured the SharePoint Server Subscription instance to use MSAP, you should be able to create webhook subscriptions using the MSAP URL as the endpoint. However, there are some limitations to keep in mind:

    • MSAP does not support long-lived connections, so SharePoint webhooks with a long expiration time may not work properly.
    • MSAP may introduce additional latency and network overhead, which can impact the performance of your webhook notifications.
    • MSAP may not support all SharePoint webhook scenarios, such as webhooks that require custom headers or authentication schemes.

    If you are experiencing issues with creating webhook subscriptions using MSAP, you may want to check the MSAP logs to see if there are any errors or warnings related to the incoming traffic from SharePoint. You may also want to check the SharePoint logs to see if there are any errors or warnings related to the outgoing traffic to MSAP.

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.