Hello @Roshan Kumar ,
Thanks for posting your query on Microsoft Q&A. As per description above I could understand your ask as follows:
Objective: Migrate users from on-prem to Azure B2C and have password writeback enabled from B2C to on-prem.
Suggestion: As per https://learn.microsoft.com/en-us/azure/active-directory-b2c/user-migration#seamless-migration we could migrate user accounts only one way user.
If the REST API determines the password is correct, it writes the password into the Azure AD B2C account and change the boolean extension attribute to False.
Post this any password policies are applied only to local accounts you just migrated.
I would recommend to post an idea regarding this at our Feedback Portal which is reviewed by the product team. OR you could use Azure AD instead of B2C which does give a password writeback option https://learn.microsoft.com/en-us/azure/active-directory/authentication/tutorial-enable-sspr-writeback.
Please do let me know if you have any queries in the comments section.
Thanks,
Akshay Kaushik
Please "Accept the answer" and "Upvote" if the suggestion works as per your business need. This will help us and others in the community as well.