I am using Microsoft webhook change notifications to listen to new emails in user's mailbox. The notifications are subscribed as follows:
{
"changeType": "created",
"notificationUrl": "{our-internal-api-endpoint}",
"resource": "/me/messages",
"expirationDateTime": "{expiry-time}",
"clientState": "SecretClientState"
}
As per documentation, Microsoft can send a subscriptionRemoved notification to indicate that a subscription has been removed by Microsoft itself but I am unable to understand or test the scenarios under which a subscription might be removed automatically. I tried changing a user's password as well as deleting the user from my testing tenant but didn't receive this notification.
Can someone please indicate the scenarios under which this lifecycle notification might be sent? For more information, we're developing a multi-tenant application with application permissions and we authorize the app using client credentials flow.
