First, I subscribed to receive notifications when users are updated, and I received notifications when I updated any user. However, my problem is that when I change the ChangeType to "created" I expected to receive notifications when a new user is created, but unfortunately, I didn't receive any notifications.
Am I wrong in my expectation? If my expectation is wrong, is there another way to achieve this?
My subscription settings below.
var sub = new Microsoft.Graph.Models.Subscription();
sub.ChangeType = "created";
sub.NotificationUrl = "https://*********.eu.ngrok.io" + "/api/notifications";
sub.Resource = "/users";
sub.LifecycleNotificationUrl = "https://*******.eu.ngrok.io" + "/api/notifications";
sub.ExpirationDateTime = DateTime.UtcNow.AddMinutes(10);
sub.ClientState = "SecretClientState";