Hello , Welcome to MS Q&A
Here are a few steps you can try to troubleshoot and resolve this issue:
- Permissions: Ensure that the application or service principal making the API call has the necessary permissions to reset passwords. The required permission is User.ReadWrite.All.
- API Endpoint: Verify that you are using the correct API endpoint for resetting the password. The endpoint should be in the format --> PATCH https://graph.microsoft.com/v1.0/users/{user-id} with the appropriate payload to reset the password.
- Payload Format: Ensure that the payload for the password reset request is correctly formatted. It should look something like this:
{
"passwordProfile": {
"password": "newPassword",
"forceChangePasswordNextSignIn": true
}
}
If you have verified all the above and are still encountering the issue, it might be helpful to check the Azure AD audit logs for any additional details or errors related to the request and you can share that with us and we can debug accrodingly
Please let us know if any questions
Kindly accept answer if it helps
Thanks
Deepanshu