Reset Passwords Using Dev Console
1. Open Developer Console
2. Click the Debug dropdown menu and select the Open Execute Anonymous Window
3. Enter the following to manually set a new password for a user:
User usr = [select Id from User where username='ENTER_USERNAME_HERE'];
System.setPassword(usr.Id,'ENTER_NEW_PASSWORD_HERE');
1 Comment
I tend to like the
sfdx cli
plug-in approach:sfdx shane:user:password:set -p <newpwd> t -u <authenticated user> -g <firstname> -l <lastname>