首页 > 解决方案 > 我希望迁移 adb2c,但旧广告使用由 userflow 实现的 mfa。如何获得strongAuthenticationPhoneNumber?

问题描述

我正在关注https://docs.microsoft.com/en-us/azure/active-directory-b2c/user-migration进行迁移,第一步是预迁移。我已经能够将除 mfa 编号之外的所有内容迁移到新的 b2c 。来自旧 B2C 的“strongAuthenticationPhoneNumber”,因为它无法通过图形访问?

标签: active-directoryazure-active-directoryazure-ad-b2cazure-ad-b2c-custom-policy

解决方案


您无法通过图形 api 访问 strongAuth 属性。您必须使用自定义策略来实施。使用 extension_whatever 查找和替换 strongAuthenticationPhoneNumber。

https://docs.microsoft.com/en-us/azure/active-directory-b2c/custom-policy-get-started

使用具有 MFA 的入门包 https://github.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack/tree/master/SocialAndLocalAccountsWithMfa

如果电话号码已经在 B2C strongAuth 属性中,并且您想移动到新的 B2C 租户,则不能公开这些号码。您可以使用自定义策略在用户下次登录时将号码迁移到扩展属性中。然后希望稍后有大量用户登录,并且可以将电话号码收集到新租户中。


推荐阅读