Creating users as inactive I'm writing a plugin to create users. The problem I'm having is when I create them Craft is automatically setting the user as "active". I want them to be "inactive" so that I can then send a verification email. I've look through the code and there appears to be no way to Create a user using craft()->users->saveUser($user) without having them always be active. 

In the admin panel I do have the "Verify email addresses?" option checked.

Please help!
Matt and I managed to work this out together. Seems like setting the pending and unverifiedEmail attributes on the userModel before saving the user does the trick.

$user = new UserModel();
$user-&gt;pending = true;
$user-&gt;unverifiedEmail = "username@domain.com";
craft()-&gt;users-&gt;saveUser($user);


Edit: Might also want to look into another syntax that I noticed in this question.

$user = new UserModel();
$user-&gt;status = UserStatus::Pending;
$user-&gt;email = "username@domain.com";
craft()-&gt;users-&gt;saveUser($user);