I've just found out how to update the password of a signed-in user via Graph api in my Web Api. Now I need to send a user that is not signed-in an email with a new password so they can sign in and change their password.
How can I send an email to an User without a signed-in user (so no token)? And if that's not possible, how can I give users the ability to change their forgotten passwords in my Web API (ROPC flow)? Thank you very much!
I tried to reproduce the same in my environment and got below results:
I registered one application and added
API permissionlike below:Now I generated one access token using ROPC flow via Postman like below:
Response:
Now, I used the above token in below graph call and changed password successfully like below:
Response:
Reference:
How to reset and change the password using Microsoft graph API of Azure AD B2C users by AmanpreetSingh-MSFT