[en] In this paper, we investigate the hybrid beamforming problem in joint radar-communications at terahertz (THz) bands. In order to address the extremely high attenuation at THz, ultra-massive multiple-input multiple-output (UM-MIMO) antenna systems have been proposed for THz communications to compensate propagation losses. Further, we propose a new group-of-subarrays (GoSA) UM-MIMO structure to reduce the hardware cost. We formulate the GoSA beamformer design as an optimization problem to provide a trade-off between the unconstrained communications beamformers and the desired radar beamformers. Numerical experiments demonstrate that the proposed approach outperforms the conventional approaches in terms of spectral efficiency and hardware costs.