Enforce notification status for a group

Is there a way of enforcing the Default notification level for group messages for all members of the group (Currently, this setting only affects new group members)?

I’m not sure if adding a check-box “Apply default notification level to all existing members” would be worth the effort, but I would be perfectly fine doing this via command line if someone could help me with the commands :grin:

1 Like

This should do the trick

cd /var/discourse
./launcher enter app
# rails c
pry > GroupUser.where(group_id: Group.find_by(name: 'GROUP NAME HERE').id).update_all(notification_level: 3)