Notes
1. User-Initiated Reset
- The user can click the "Forgot Your Password?" link on the Salesforce login page.
- An email with a password reset link will be sent to the user's registered email address.
2. Admin-Initiated Reset
- A Salesforce Administrator can reset a user's password through the Setup menu:
- Go to Setup → Users → Locate the user → Click Reset Password.
- This sends a password reset email to the user.
3. Using Apex Code
- An administrator or developer can reset a user's password programmatically using Apex.
User userRecord = [SELECT Id FROM User WHERE Email = 'user@example.com' LIMIT 1];
System.resetPassword(userRecord.Id);