0
votes

We need to move users from an on-premise Active Directory on Windows Server (not Azure Active Directory) to Azure AD B2C. But, we're having difficulty in trying to figure out how to read the user data from the AD using Azure products.

We're thinking about using one of the following Azure products to read from on-premise AD, but it's surprisingly difficult to find if this is possible or not, much less how to do it:

The Microsoft article Migrate users to Azure AD B2C says that a script needs to be written that uses the Microsoft Graph API to create user accounts in Azure AD B2C. But the article doesn't give advice on how to access the source data, which in our case is AD.

1
You can use PowerShell cmdlet Get-ADUser to get the AD users and then import them into Azure B2C via calling Microsoft Graph Create User.Allen Wu
Hi did you have a chance to look into my answer? Is there anything unclear?Allen Wu
Thank you, Allen. Your suggestion seems to be the way to go. We didn't find an easier way than that.Toby Artisan

1 Answers

0
votes

There is no out-of-box Azure product/solution that connects to on-prem AD. Maybe there is a way which requires you create custom connector and custom API for querying AD users. See this post.

The quickest way is using PowerShell cmdlet Get-ADUser to export the AD users and then import them into Azure B2C via Microsoft Graph Create User.