Auto-detect group id or group name passed in through the group resource parameter