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
Madhura BMadhura B 

Avoid password reset

Hi,

 

I have to migrate users in the org from one license to another.

Say  I deactive certain users and create fresh users with same details as those of deactivated but different License will the password be reset? If so then how can that be avoided?

 

 

Thanks

sfdcfoxsfdcfox

There's no way to retrieve the passwords used (they are stored as hashes to begin with, plus sfdc won't allow those values to be exported anyways), so yes, when you create new users they will need new passwords. You can choose to assign a default password using setPassword() in the API. There's really no way to avoid this limitation.