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

Sending welcome email to newly created SSU

When we create/enable a new selfserviceuser (ssu) through SF interface, there is an option to check the box for: Create and email a new password to the user.


Today, in our code, we manage to create a new user, create a new SSU for this user, and we manually do a setpassword, and set an email to the user. 


Is it possible to do the email password via the API?  



I also think that something is weird when doing a reset password. The fact that I get the new password of the user is wrong. It should not be like that.

See the EmailHeader for options on controlling which emails get sent.

Thanks Simon.


This helped a bit on the resetPassword() .


Is there the same for the : enableSelfService???  When I created a new SSU, no email was sent.  Should I set to true all 3 email variables?