I want to disable user accounts programmatically inside hook_cron() after a synchronisation job. I don't want to delete the users because of their generated content. But they should not be able to log in and receive any notification-mails and stuff like that.
Should I use the user status field for that? And if so should I use user_save to change this as I don't want drupal to send out mails to the users (via _user_mail_notify inside user_save) or just set the status fields inside the db? Are there any other hooks or functions that I would miss doing that?