How to convert or manipulate a regular email field that accepts user email id for verification to a readonlyEmail field that prepopulates a user email id when performing a password reset.
I have configured a custom password reset policy that passes in an id_token_hint and login_hint to the read-only claim which populates the read-only Email field with users email id. However, 2 email fields are seen, the first which is the rea-donly Email field and the second is the regular email field that accepts user email id.
I commented out the email claim in the LocalAccountReadPasswordUsingObjectId of the trustframeworkbase policy. This removed the second email field, but I was unable to perform the password reset as I believe the email field is required for password reset.
Is it possible to manipulate the email field to a read-only Email for the password reset? If so. How could I achieve a password reset policy with read-only Email without having two email fields?
[readonlyEmail claim type][1]
Run Now Output
Password reset flow [1]: https://i.stack.imgur.com/Z8sMQ.png
Assuming that your CpimIssuerTechnicalProfileReferenceId technical profile reading the email address from the token as email.
create a claim type as follows:
Add a claim transformation:
Change your LocalAccountDiscoveryUsingEmailAddress technical profile as follows:
All done!
Note: Make necessary changes to the above pieces to match your custom policy.