Azure AD B2C:找不到提供的用户 ID 的帐户

Azure AD B2C : An account could not be found for the provided user ID

我正在测试 Azure B2C AD 的 "Password reset policy" 功能,但我就是无法让它工作。我收到错误 "An account could not be found for the provided user ID.",即使我尝试为其重置密码的用户帐户确实存在。

重现步骤:

1) 在 Azure AD B2C 中创建用户

2) 在 Azure 门户中转到 "Users" > "Password reset - Properties",并启用自助服务密码重置(不确定是否需要这样做?)

3) 使用这些设置在 Azure AD b2c 中创建密码策略:

4) 保存策略

5) 在密码重置政策页面点击"Run now"

6) 输入在步骤 1 中创建的用户的电子邮件地址,然后单击 "Send verification code"

7) 输入收到的验证码点击"Verify"

8) 输入电子邮件地址并单击 "Continue"。

我的结果是以下错误消息: "An account could not be found for the provided user ID."

我做错了什么?

这个问题应该是第1步引起的

我假设您是通过在 Azure Active Directory 中单击“新建用户”来创建用户的。这种用户不是 Azure AD B2C 中的本地帐户,它是工作或学校 account.It 通常有 <...>.onmicrosoft.com 域。这是针对 Azure AD,而不是 Azure AD B2C。因此,Azure AD 的此密码重置策略不适用于 Azure AD B2C。

您可以在 this FAQ 中查看有关本地帐户与工作帐户或学校帐户之间差异的详细信息。

Azure AD B2C 中的本地帐户应通过注册创建。并且用户的密码策略应该与 B2C 密码策略一起使用。

此外,您还可以 use Azure AD work or School accounts to login Azure AD B2C 通过将 Azure AD 集成为社交 IDP,就像 Google+、Facebook。