function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jason FungJason Fung 

Change all password at once across many orgs

Not sure if anyone know a tool that can help with this? I'm working at an ISV and we have an admin account setup in each of our customers' orgs. The problem is that we have 30+ customer and every quarter we are required to change our passwords as per salesforce password policy. Does anyone know if there is any password management software that can change the password of our admin accounts all at once, instead of having to log into each of our customer's org and change the password one by one. This is very manual process and often takes up to 3 hours to complete. I'm looking for a better way to do this...
 
Best Answer chosen by Jason Fung
Raj VakatiRaj Vakati
Hi Jason, 
you can write a scheduler apex class to reset/change users  passwords . and configure the same job in all your orgs  
Sample code to reset password it .

List<User> u =[Select Id , Name from User] ;
for(User u1 : u ){
    System.resetPassword(u1.id ,false );
   }


Thanks ,
Raj




 

 

All Answers

Raj VakatiRaj Vakati
Hi Jason, 
you can write a scheduler apex class to reset/change users  passwords . and configure the same job in all your orgs  
Sample code to reset password it .

List<User> u =[Select Id , Name from User] ;
for(User u1 : u ){
    System.resetPassword(u1.id ,false );
   }


Thanks ,
Raj




 

 
This was selected as the best answer
Jason FungJason Fung
Yes this would work! Thank you so much Raj! =)