Hi anonymous user
You can of course use the Graph api to modify the password of a B2C user. First you need to grant Directory.AccessAsUser.All
delegate permission for your application and grant admin consent. then use Azure AD based authentication flow (eg: ROPC flow or auth code flow) to get the token.
Finally, you only need to modify the password in the passwordProfile field.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.