Which Graph API should be used with Azure AD B2C

We are looking at using Azure AD B2C in an application and I am confused about which package to use when working with Azure AD B2C.

This question discusses the difference between the MSAL and ADAL library: MSAL or ADAL library for use with Azure AD B2C and Xamarin.

In addition to that, there is now a warning on the Azure AD Graph API reference to instead use the Microsoft Graph API. None of the examples for B2C seem to use Microsoft Graph API and there appears to be no description of the level of support for Microsoft Graph with B2C.

I need to be able to create users with custom attributes in B2C and then query them using a Graph API.

What is the correct package to use to interact with Azure AD B2C and are there examples that show how this is done?


Solution 1:

As of today, we recommend that you use the Azure Active Directory Graph API https://graph.windows.net to access and manage your B2C tenants.

Azure AD B2C: Use the Graph API

If you read this article, you can learn more about the gaps between AAD and Microsoft Graph API: https://dev.office.com/blogs/microsoft-graph-or-azure-ad-graph

The bottom line in the table states:

  1. Manage users in B2C tenant (set local accounts, sign in names)

Coming soon (preview)

The rest of this article should hopefully help people decide which API to use today. Ultimately, everything will make it's way to Microsoft Graph... it will just take a little time.

Let me know if this helps!