question

AbhayChandramouli-2076 avatar image
0 Votes"
AbhayChandramouli-2076 asked amanpreetsingh-msft commented

Azure AD B2C | Seamless Migration

Hi
I want to migrate users from a system to Azure AD B2C. I want to know the steps or ways to achieve this.
I tried the bulk user create using csv but that allows only onmicrosft.com domains (verified domains).
I need to migrate users with any username such as gmail outlook etc or even phone numbers.

Please help

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

amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered amanpreetsingh-msft commented

Hi @AbhayChandramouli-2076 • Thank you for reaching out.

For user migration, below are the 4 options that you have.

  1. Just in time migration v1 - In this sample, Azure AD B2C calls a REST API that validates the credential, and migrates the account with a Graph API call.

  2. Just in time migration v2 - In this sample, Azure AD B2C calls a REST API to validate the credentials, return the user profile to B2C from an Azure Table, and B2C creates the account in the directory.

  3. Seamless-account-migration - Where accounts have been pre-migrated into Azure AD B2C and you want to update the password on the account on the initial sign-in. Azure AD B2C calls a REST API to validate the credentials for accounts marked as requiring migration (via attribute) against a legacy identity provider, returns a successful response to Azure AD B2C, and Azure AD B2C writes the password to the account in the directory.

  4. B2C to B2C Migration - Migrate users from one B2C instance to another using just-in-time migration.

Please go through these samples to identify the one that best addresses your requirement.


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

· 5
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 @amanpreetsingh-msft ,
thanks for the answer,

These are custom policy based. Is there a way we can migrate the users beforehand ? and not use the Azure built in login page ?
Our scenario is something like this
We login into "our" login page and then use these credentials to create(if not exist)/update the user in Azure AD B2C using graph APIs.

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

@AbhayChandramouli-2076 • In that case, you can use the Graph Call provided here: Create a user with social and local account identities and to combine multiple requests for bulk user creation, use JSON Batching.

1 Vote 1 ·

Hi @amanpreetsingh-msft ,
1.So json batching and csv are the only ways available to migrate users ? And what about my question on the different domains I would like in the userPrincipalName which is not allowed in CSV method ?
2. I am able to register users with any domain email / mobile via the user flow login or custom policy login, but how to bulk create users with different domains ?


Thanks

0 Votes 0 ·
Show more comments