question

AbhayChandramouli-2076 avatar image
0 Votes"
AbhayChandramouli-2076 asked alfredorevilla-msft edited

Azure AD B2C | Seamless Migration Approach

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

azure-ad-b2c
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

alfredorevilla-msft avatar image
0 Votes"
alfredorevilla-msft answered alfredorevilla-msft edited

Hello @abhaychandramouli-2076, 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.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HI @alfredorevilla-msft
Will I be able to do this for millions of users ?

0 Votes 0 ·
alfredorevilla-msft avatar image alfredorevilla-msft AbhayChandramouli-2076 ·

Hello @abhaychandramouli-2076, apologies for the delay. Yes, you can do it for millions of users. I've updated my answer with the required information.

Please take a look and let us know if this answer was helpful to you or if you need additional assistance. If it was helpful, please remember to accept it so that others in the community with similar questions can more easily find a solution.

0 Votes 0 ·