As an admin, I can’t find the setting according to the option “Email Notifications” in user chat preferences.
I need to set the option to ‘Never’ for every user at once, but I can’t.
In a feature request titled ‘Can’t set Email Notifications for Chat in admin setting,’ users discuss the inability to globally configure chat email notifications for all users via admin settings. Dotila_Li reports not finding the ‘Email Notifications’ option in user chat preferences and wants to set it to ‘Never’ for everyone. nathank confirms this is a feature request, not a bug, and supports the idea, suggesting a script may help manage existing users. Overgrow shares a Ruby script to update all users’ chat email frequency to ‘never’, noting that ‘when_away’ is currently the default. nathank asks what will happen for new users. Moin bumps the thread, adding that DM chat email notifications are now separate from core email settings, and recommends setting the default level to ‘never’ to avoid unwanted emails. The discussion highlights a gap in bulk admin controls for chat notifications and offers a temporary workaround via scripting.
As an admin, I can’t find the setting according to the option “Email Notifications” in user chat preferences.
I need to set the option to ‘Never’ for every user at once, but I can’t.
I’ve moved this to Contribute > Feature and tagged it chat as it isn’t a broken thing but rather a thing you are requesting.
You’ve got my +1! It would be really helpful to be able to easily configure site defaults for chat.
You could probably do what you need via the Rails console for your existing users. But I’m not sure how you’d do that for your new joiners. Maybe a Custom Wizard?
I just needed to set the default email notifications (to never) for chat for everyone, because it seems like when_away is the default.
I’m sharing the script:
User.all.each do |user|
user_option = user.user_option
if user_option.chat_email_frequency != "never"
puts "User: #{user.username} - Current chat_email_frequency setting: #{user_option.chat_email_frequency}"
user_option.update(chat_email_frequency: "never")
# puts "Updated chat_email_frequency setting to 'never' for user: #{user.username}"
end
end
What will you do for your new joiners?
Bumping this.
Chat email notifications for DMs are now independent from the core email settings, which means configuring default email level to “never” no longer blocks these chat emails.