Hello
We could force the user to reset password on first login via Custom Policies. This sample console app (.Net core) demonstrates how to send sign-up email invitation. The web application sends an email to the end user with a link to sign-up policy. The link to the sign-up policy contains the email address, which is encapsulated inside a JWT token (id_token_hint). When a user clicks on that link, Azure AD B2C validates the JWT token signature, reads the information from the token, extracts the email address and ask the user to set the password, display name, surname and given name.
Kindly follow email invite custom policy as per: https://github.com/azure-ad-b2c/samples/blob/master/policies/invite/policy/SignUpInvitation.xml
- Where in 3rd orchestration step LocalAccountSignUpWithReadOnlyEmail technical profile is called:
- This technical profile force user to set the password without editing the email address:
Please do let me know if you have any further queries on this in the comments section.
Thanks,
Akshay Kaushik
Please "Accept the answer", "Upvote" and rate your experience if the suggestion works as per your business need. This will help us and others in the community as well.