Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When i create new user through salesforce UI i dont want the password notification to be sent to the User .Is this possible ?I know one solution is to uncheck the generate Email Notification and new password email check box .Is it possible through trigger before insert in case the admin forgets to uncheck that ?

share|improve this question
Might want to look at DmlOptions emailHeader.sendUserEmail = false along with the setOptions method of the User in a trigger (not sure if it would be before or after insert). – Peter Knolle Jan 9 '13 at 11:13
Hard luck tried with before insert and also after insert :( – Mohith Shrivastava Jan 9 '13 at 12:01
Have you tried contacting support and just asking if it is a feature you can have turned off globally? If you don't ever want that email to go out, this might be an option. – Peter Jan 9 '13 at 13:14
Thanks for this suggestion.My problem is profile specific .A super User profile clone of admin when he creates users no email suppose to go .For data load of user we had salesforce to turn off for us globally .Now we have asked them to enable .Also there are administrative permissions to stop the profile users to send email but this stops even batch finish emails that we have custom coded after every batch .any ways thanks for your answer – Mohith Shrivastava Jan 9 '13 at 13:17
Database.DMLOptions dmlo = new Database.DMLOptions();
dmlo.EmailHeader.triggerUserEmail = false; 
// give true if you want to send email notification.

Database.insert(user, dmlo);
share|improve this answer
Please qualify your code example with an explanation of the purpose and how it fits the solution – Bartley Apr 3 '14 at 7:52

You have two options.

  1. While creating the new user, dont put the correct email address. You can either use a dummy email address or maybe the admin's email address. This way emails will not go to the actual users. However there is downside to it. The downside is that you eventually have to change the the dummy address to the correct email address. And when you do that Salesforce send an email to the user asking him to confirm the change. If your users dont mind receiving this email, VOILA.

  2. Create a VF page that should look just like the new user page without the checkbox. And then the code behind insert a new user object using the data obtained from the VF page.

Also please let me know if any of these two solutions work. So that others may also benefit from it.

share|improve this answer
Thanks for the reply.The pagelayout of user record is not completely under our control and i fear we cannot replace it . – Mohith Shrivastava Jan 10 '13 at 3:01

You can achieve this by using Data Loader.User Insert operation using Data Loader to Insert the users with Avoiding the password notification to the inserted users.while inserting please make sure that the mandatory fields are filled or not.

Thanks, Kiran

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.