Please do a DELETE HTTP Request to reset the password for the users using standard Salesforce REST API.
Syntax:
https://{Your Domain URL}/services/data/vXX.X/sobjects/User/{Id of the User}/password
Developer Article:
The following exception is thrown if the integration user doesn’t have “Manage Users” permission. Grant the permission via Profile or Permission Set or Permission Set Group so that the integration user can reset the password for the users via Salesforce REST API.
Exception:
[
{
"message": "You do not have permission to view this record.",
"errorCode": "INSUFFICIENT_ACCESS"
}
]
Help Article:
https://help.salesforce.com/s/articleView?id=000385064&type=1