Check the group membership using dscl on Mac.