Reputation: 591
I am testing the "Password reset policy" functionality of Azure B2C AD, but I simply cannot get it to work. I receive the error "An account could not be found for the provided user ID." even though the user account I am trying to reset password for, does indeed exist.
Steps to repro:
1) Create user in Azure AD B2C
2) Go to "Users" > "Password reset - Properties" in the Azure portal, and enabled Self service password reset (not sure this is needed?)
3) Create password policy in the Azure AD b2c using these settings:
4) Save the policy
5) Click "Run now" on the password reset policy page
6) Enter email address of user created in step 1 and click "Send verification code"
7) Enter received verification code and click "Verify"
8) Enter email address and click "Continue".
The result for me, was the following error message: "An account could not be found for the provided user ID."
What am I doing wrong?
Upvotes: 4
Views: 6348
Reputation: 9401
This issue should be caused by the step1.
I assume that you created user by clicking New user in Azure Active Directory. This kind of user is not a local Accounts in Azure AD B2C, it is a work or school account.It usually has <...>.onmicrosoft.com
domain. This is for Azure AD, not Azure AD B2C. So, this passowrd reset policy for Azure AD does not work for Azure AD B2C.
You can see the details about the difference between Local accounts from work or school accounts in this FAQ.
Local Accounts in Azure AD B2C should be created by Sign-up. And the users' password policy should be work with B2C password policy.
Additonial, you can also use Azure AD work or School accounts to login Azure AD B2C by integrating Azure AD as a Social IDP, just like Google+, Facebook.
Upvotes: 6