TIL Newgrp Change Groups without Logout

Every instruction on the web to add/remove a linux user from a system group ends with the following: “Make sure to log out and back in for these changes to take effect”. Well I do not like to log out, especially when I am in the middle of a project and have all my windows set up the way I want. So today I found this gem:

man newgrp
SYNOPSIS
       newgrp [group]

DESCRIPTION
       newgrp  changes  the  group identification of its caller, analogously to login(1).  The same person remains
       logged in, and the current directory is unchanged, but calculations of access permissions to files are per‐
       formed with respect to the new group ID.

So now, I can update my group permissions without having to log out and thus disrupt my workflows.