To change the group recursively of files and folders only if the original group is a certain value, you can use the following (replace “yournewgroup”, “youroldgroup”, and “/path/to/wherever” to your own values).
chown :yournewgroup --from=:youroldgroup -R /path/to/wherever