user-migration | Azure AD B2C User Journeys to perform User Migration | Azure library
kandi X-RAY | user-migration Summary
kandi X-RAY | user-migration Summary
When you plan to migrate your identity provider to Azure AD B2C, you may also need to migrate the users account as well. Following examples demonstrate how to migrate existing user accounts with their passwords and profiles, from any identity provider to Azure AD B2C.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of user-migration
user-migration Key Features
user-migration Examples and Code Snippets
Community Discussions
Trending Discussions on user-migration
QUESTION
I created an Azure AD B2C tenant with custom policies last year. Now I am trying to upload the same policies (with IDs changed as necessary) to a new tenant that we have just created and I get the following error when uploading the reset-password policy:
Validation failed: 1 validation error(s) found in policy "B2C_1A_PASSWORDRESET" of tenant "xxx.onmicrosoft.com".Persisted claims for technical profile "AAD-FlipMigratedFlag" in policy "B2C_1A_PasswordReset" of tenant "xxx.onmicrosoft.com" must have one of the following claims: userPrincipalName
These policies implement the Seamless Migration approach to user migration, based on samples in the following repositories:
https://github.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack
https://github.com/azure-ad-b2c/samples
https://github.com/azure-ad-b2c/user-migration
As suggested by the error message, I have tried adding userPrincipalName
to the PersistedClaims
for the AAD-FlipMigratedFlag
technical profile, but I get the same error when uploading the policy.
I have also tried re-uploading the existing, working reset-password policy to the existing, working tenant, and I get the same error. Note that in this case I am re-uploading the exact same policy that has already been successfully uploaded and has been working for a year.
So the question is: what has changed and what do I need to do to fix this error?
Here are the relevant parts of my custom policy files. If there are any other parts you need to see, just let me know and I'll add them.
PasswordReset.xml
...ANSWER
Answered 2022-Feb-22 at 13:50Have yout tried to add the userPrincipalName claim to the OutputClaims section of PasswordReset.xml?
QUESTION
We are moving from an on prem identity provider to Azure AD B2C. Based on this official Microsoft documentation, we decided to go with the seemless migration process. The only problem I have with this approach is that we cannot really test it until we are in production, because our api's route that needs to be called (to validate user's credentials against legacy idp) are not reachable from the outside in all development/integration stages (for obvious reasons).
I want to know if anyone has ever implemented this flow in real life and if so, how did you manage to test it?
...ANSWER
Answered 2021-Oct-18 at 23:57You should have a test instance of your IdP. Your production env should be mirrored in terms of architecture in lower envs. Anything less is not representative.
QUESTION
I have to migrate users from an Azure Active Directory B2C Tenant (oldtenant) to another (newtenant) using Seamless migration
In the oldtenant I have some "users" (with @oldtenant.onmicrosoft.com) and some "Azure AD B2C users" (with @otherdomain.com).
The "Users" are created with button
The "Azure AD B2C users" are created with button
I have to retrieve the user access token to check the user's credential to create the user in the newtenant. I used the source code provided here to create an API that uses user's credential to retrieve the user token. I Also create in the oldtenant an app registration to allow the API to access user's info.
When I try to retrieve user token for @oldtenant.onmicrosoft.com it works, but when I try to retrieve the token for an user @otherdomain.com, I obtain the following error:
...ANSWER
Answered 2021-May-10 at 06:08When you create a consumer account (B2C account) by using "Create Azure AD B2C user" button, the real user principle name should be like this: {objectID}@oldtenant.onmicrosoft.com
although you can sign into B2C with such a mail format xxx@otherdomain.com
.
The data in the background is actually in this format:
QUESTION
Just getting started with a migration of an existing legacy (local database) IDP to Azure B2C. I want to use something similar to the seamless user migration ( https://github.com/azure-ad-b2c/user-migration/tree/master/seamless-account-migration/policy ) custom policy. Looking at the B2C community GitHub repository, it is missing the base policies. Any idea where I can find those base policy examples?
...ANSWER
Answered 2021-Feb-05 at 21:19The pre requisites are here: https://docs.microsoft.com/en-us/azure/active-directory-b2c/custom-policy-get-started
Or use my tool to automate it: https://aka.ms/iefsetup
QUESTION
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:
- Azure Data Factory
- Azure Logic App
- Microsoft Power Platform Dataverse (formerly Common Data Service)
- Power BI Data Flows
- Note: We can't use Azure AD Connect to migrate the users because that tool isn't designed to work with B2C. Reference Microsoft's Azure AD B2C: Frequently asked questions (FAQ).
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.
...ANSWER
Answered 2021-Feb-02 at 02:15There 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.
QUESTION
I am following https://docs.microsoft.com/en-us/azure/active-directory-b2c/user-migration for migration and the first step is pre migration . Ive been able to migrate everything but the mfa number to the new b2c . "strongAuthenticationPhoneNumber" from the old B2C as it isnt accessible by graph?
...ANSWER
Answered 2020-Sep-23 at 19:59You cannot access strongAuth attributes via graph api. You have to implement using custom policy. Do a find and replace for strongAuthenticationPhoneNumber with extension_whatever.
https://docs.microsoft.com/en-us/azure/active-directory-b2c/custom-policy-get-started
Use the starter pack that has MFA https://github.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack/tree/master/SocialAndLocalAccountsWithMfa
If the phone numbers are already in B2C strongAuth attribute and you want to move to a new B2C tenant, then those numbers cannot be exposed. You could use a custom policy to migrate the numbers into an extension attribute on a users next sign in. Then later in time hopefully a large number have signed in and the phone numbers can be harvested into a new tenant.
QUESTION
I am migrating local users from SQL database to Azure AD B2C. Azure AD uses user principle name (UPN) by default for login. I have gone through below documentation but not able to understand how can I configure Azure AD to use my existing username as alternate login. I also need to update password for each user upon first login. It is a web application where I want to shift user authentication to Azure AD B2C by redirecting app users to a customized microsoft login page.
https://docs.microsoft.com/en-us/azure/active-directory-b2c/user-migration
https://github.com/azure-ad-b2c/user-migration
Many thanks in advance
...ANSWER
Answered 2020-Aug-24 at 13:49When creating the user, see this sample.
You put the users username in the issuerAssignedId
value.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install user-migration
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page