Automate assignment of group names