Home > Asp.net MVC > Creating Azure B2C users using Graph API in .Net Core App

Creating Azure B2C users using Graph API in .Net Core App

This article will help to understand Azure B2C user create operation using .net core application.

Below are steps for application setup on Azure Portal

  1. Go to Azure Portal https://portal.azure.com/
  2. From All Resources find Azure B2C.
  3. Go to App Registrations and register the new application.
  4. Create new client secret that we are going to use to access the Graph API.
  5. We need to add some permission to application below screen.

 

 

 

 

 

 

 

Below are the required Nuget packages to install in .net core application 

  1. Microsoft.Graph 4.11.0 
  2. Microsoft.Graph 1.0.0-preview.7
  3. Microsoft.Graph.Core 2.0.5

Code for the creating the graph client:

 

Code to create B2C Users:

Below are the reference links:

  1. https://www.youtube.com/watch?v=Z2Lu-PzWYLU
This Article is TAGGED in , , , . BOOKMARK THE permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">