+ Start a Discussion
Shubham Gupta 93Shubham Gupta 93 

I want reset password for 100 users to default Password as 'Test'. and also these user should not get any email regarding that. how can i do that?

Nissam PSNissam PS
You can perform it through Developer Console by using the below code:
List<User> userList = new List<User>();
userList = [SELECT Id from User WHERE Id ='00541000000gUBq'];
for (User u : userList)
    System.setPassword(u.Id, 'test!123');
    System.debug('DONE: ' + u.Id);

Make sure to change the condition that suits your case and also note that you can't simply default to 'Test' as this doesn't meet Salesfoce password requirement.