Managing resource groups