Graph Api subscription creates webhooks without token validation most of the time

Aleksa Markovic 0 Reputation points
2024-03-04T10:49:10.96+00:00

I've followed the steps mentioned in the docs here https://learn.microsoft.com/en-us/graph/change-notifications-delivery-webhooks?tabs=http.

However, the api is siply not behaving as it's stated there. Most of the time, the request allows me to create a subscription and sends data on events to the notificationUrl I've stated.

Sometimes though, it does send the initial request with the token that I need to decode and return (alongside 200OK within 10 seconds). This is unexpected behavior.

I've tried this with some free publicly available URLs and the same thing happens. I thought it might be some kind of security setting or whatever in Salesforce (since I'm using this api in SF) but it's not.

Alongside that, the lifecycleUlr never gets triggered and my subscriptions expire just like that.

Can someone help with this?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,802 questions
{count} votes

Your answer

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