Quick and easy adding of a user to a group on OSX

sudo dscl localhost -append /Local/Default/Groups/thegroupname GroupMembership theusername