macOS / binaries /

newgrp

/usr/bin/newgrp
Change to a new group

The newgrp utility creates a new shell execution environment with modified real and effective group IDs.

source: man