This is a Redmine plugin. This plugin filters issue watchers and checks/unchecks them, by groups, roles and watcher names.