3

I'm trying to get change notifications for users to work with my application connected to Azure AD B2C.

I followed the following tutorial and the subscription is created successfully but I never get any change notification:

https://learn.microsoft.com/en-us/learn/modules/msgraph-changenotifications-trackchanges/1-introduction

After a bit of research I found some statements mentioning that B2C is not supported by Graph API:

I wonder whether this still holds true especially because Microsoft announced that Azure AD Graph API should not be used anymore:

https://techcommunity.microsoft.com/t5/azure-active-directory-identity/update-your-applications-to-use-microsoft-authentication-library/ba-p/1257363

I ask this question here because Microsoft support redirected me to SO to ask questions about Graph API.

TLDR;

Does Microsoft Graph API support change notifications with Azure AD B2C in 2020?

ViRuSTriNiTy
  • 5,017
  • 2
  • 32
  • 58

1 Answers1

2

Microsoft Graph API does not support change notifications with Azure AD B2C as of August 2020. Nor does AAD Graph support change notifications with Azure AD B2C as of August 2020.

You could use Azure Monitor and Event hubs to harvest events from the Audit Logs, such as a Sign Up event. https://learn.microsoft.com/en-us/azure/active-directory-b2c/azure-monitor

Jas Suri - MSFT
  • 10,605
  • 2
  • 10
  • 20
  • Great, a direct answer from the B2C team. Now I know for sure that it is the wrong approach right now and I have also considered audit log processing. Is there a plan on when to implement change notifications with support for B2C? – ViRuSTriNiTy Aug 21 '20 at 05:39
  • 1
    No plans for "change notifications" to come to AAD B2C. – Jas Suri - MSFT Aug 21 '20 at 13:44
  • @JasSuri-MSFT - would you have an example code for this? We have spent whole day trying to get notifications to work only to land on this stack overflow answer :( – Luke Feb 28 '22 at 09:13
  • Did you check the doc? Once you have it setup, there is a Notifications menu in the App Insights resource, where you can create alert logic. In the doc, we provide some examples of the types of query you can run. You can check Kusto docs to learn about the query language. – Jas Suri - MSFT Feb 28 '22 at 09:19