Share via

Microft Graph Subscription - Not Getting Notifications

Oscar Cedano 21 Reputation points
2022-06-26T07:33:27.347+00:00

Hello,

I'm testing out subscribing to user creation actions on our MS 365 account. I have created the subscription by making a POST call to the following endpoint -> https://graph.microsoft.com/v1.0/subscriptions providing all of the required fields and responding back to the call immediately with the validationToken included in the request query parameters. My subscription's changeType is created and my resource is /users.

I'm getting the immediate call to validate the request to my notificationUrl and a 201 response, but whenever I create a new user on our Admin Center or even through AzureAD directly, I am not getting any sort of call to my notificationUrl. I also made sure the expirationDate on the subscription is a couple of days ahead.

I initially thought there could be some sort of delay on the notification, but after waiting a few days I realized the notification just never came through and something must be amiss

Any help would be appreciated.
Regards.

Microsoft Security | Microsoft Graph
0 comments No comments

Answer accepted by question author

Zehui Yao_MSFT 5,881 Reputation points
2022-06-27T09:51:14.047+00:00

Hi @Oscar Cedano , please try changing the value of chageType to updated. As the documentation mentioned, User change notification supported updated and deleted.

215371-untitled.png


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Oscar Cedano 21 Reputation points
    2022-06-29T02:48:57.613+00:00

    This worked. Thank you! Oddly, enough. I set up a webhook for both updated and deleted actions, and deleted actions seem to be coming in with the changeType property set to updated, instead of deleted.
    Also, looks like the change notification doesn't include what fields were updated unfortunately, but I think that's by design.
    Regardless, thanks for pointing this out.
    Regards.

    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.