Azure AD B2C | Seamless Migration Approach

Abhay Chandramouli 1,031 Reputation points
2022-05-12T09:55:14.227+00:00

Hi,
I am trying to migrate users from one system to Azure AD B2C.
There are two ways I found while exploring the community, one is using Bulk user creation csv and the second is using batch post requests.

Bulk user creation using csv is not allowing us to add domains other than onmicrosoft .com. We would like the user principal name to be mobile number, email (like gmail.com etc). How to implement this ?
We want to move a large number of users from the system.

We are able to register users on our custom policy signup page with UPN as email or phone number, but we are not able to create new users using CSV or azure portal. Please let me know if I am missing something or is there any other way to achieve this

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
40,274 questions
0 comments No comments
{count} votes

Accepted answer
  1. 2022-05-13T07:51:39.73+00:00

    Hello anonymous user, you can create them using the MS Graph API and setting the user identities property. The UPN will be auto-generated by Azure AD B2C.

    Use batching to send many requests instead of just one to reduce resource consumption and throttling issues. Also, take a look to Microsoft Graph throttling guidance.

    Eg.

    Email authentication:

       {  
          "identities": [  
             {  
                "signInType": "emailAddress",  
                "issuer": "myb2ctenant.onmicrosoft.com",  
                "issuerAssignedId": "myemailaddress@gmail.com"  
             }  
          ],  
          "passwordProfile": {  
             "password": "<PLAIN TEXT PASSWORD>",  
             "forceChangePasswordNextSignIn": false  
          },  
          "passwordPolicies": "DisablePasswordExpiration"  
       }  
    

    Phone authentication:

       {  
          "identities": [  
             {  
                "signInType": "phoneNumber",  
                "issuer": "myb2ctenant.onmicrosoft.com",  
                "issuerAssignedId": "<PHONE NUMBER INCLUDING COUNTRY CODE>"  
             }  
          ],  
          "passwordProfile": {  
             "password": "<PLAIN TEXT PASSWORD>",  
             "forceChangePasswordNextSignIn": false  
          },  
          "passwordPolicies": "DisablePasswordExpiration"  
       }  
    

    Let us know if this answer was helpful to you. If so, please remember to accept it so that others in the community with similar questions can more easily find a solution.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.