Hi,
I have a signup-signin policy that first ask the username, it checks if the user exists using a technical profile that reads the user as explained in https://learn.microsoft.com/en-us/azure/active-directory-b2c/active-directory-technical-profile
I would like, in that step, to check if the user password is expired/must be changed but it seems not possible using AzureActiveDirectoryProvider. Can you help on reaching my goal?
What I've done so far:
Reading this article https://learn.microsoft.com/en-us/azure/active-directory-b2c/force-password-reset I managed to set the flag in the password profile and I can read it with OpenIdConnect protocol like in the sample policy https://github.com/azure-ad-b2c/samples/tree/master/policies/force-password-reset
What I'm not able to do is read this flag BEFORE entering the password. If I try to read it inside AAD-UserReadUsingEmailAddress I receive the error "Output Claim 'passwordProfile.forceChangePasswordNextSignIn' is not supported in Azure Active Directory Provider technical profile 'AAD-UserReadUsingEmailAddress'"
I tried with passwordProfile.forceChangePasswordNextSignIn, forceChangePasswordNextSignIn, passwordProfile.forceChangePasswordNextLogin, forceChangePasswordNextLogin and also passwordExpired as returned by OpenIdConnect, but without success.
The documentation https://learn.microsoft.com/en-us/azure/active-directory-b2c/user-profile-attributes#password-profile-property is not clear if the attribute is only fro writing and not for reading.