# Enforce notification status for a group

**URL:** https://meta.discourse.org/t/enforce-notification-status-for-a-group/63722
**Category:** Support
**Created:** [01.Июнь.2017 10:39:22 UTC](https://meta.discourse.org/t/enforce-notification-status-for-a-group/63722 "2017-06-01T10:39:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [01.Июнь.2017 10:39:22 UTC](https://meta.discourse.org/t/enforce-notification-status-for-a-group/63722/1 "2017-06-01T10:39:22Z")

</div>

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 😁

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [01.Июнь.2017 12:46:16 UTC](https://meta.discourse.org/t/enforce-notification-status-for-a-group/63722/2 "2017-06-01T12:46:16Z")

</div>

This should do the trick

```plaintext
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)

```

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [08.Июнь.2024 12:44:41 UTC](https://meta.discourse.org/t/enforce-notification-status-for-a-group/63722/3 "2024-06-08T12:44:41Z")

</div>

Эта тема была автоматически закрыта через 2564 дня. Новые ответы больше не принимаются.
