Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 793
TaintedLemon Avatar asked May 03 '17 21:05

TaintedLemon


People also ask

What is Graph API Azure AD?

The Microsoft Graph API is a RESTful web API that enables you to access Microsoft Cloud service resources. After you register your app and get authentication tokens for a user or service, you can make requests to the Microsoft Graph API. For more information, see Overview of Microsoft Graph.

Is Microsoft Graph API deprecated?

There are currently no deprecated versions of Microsoft Graph.

What is difference between Azure AD and Azure AD B2C?

Azure AD is Microsoft's solution for managing employee access to SaaS apps and it has features designed for this purpose such as licensing and Conditional Access. Azure AD B2C provides an identity and access management platform for building web and mobile applications.


Video Answer


1 Answers

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!

like image 81
Shawn Tabrizi Avatar answered Sep 19 '22 18:09

Shawn Tabrizi