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
sdbsdb 

New user email does not include password

When a user registers for our site they get a new user email generated by Salesforce. However, the email contains only the user's username, not the password.

 

Here is how the new user is created:

 

Site.createPortalUser(user, accountId, password, true);

 

Is there anyway to get the password into the email sent to the new user?