Oops.
users=( ${$( cat /etc/users | cut -d : -f 1,7 | grep -v "#" )//:*/} )
should be, users=( ${$( cat /etc/passwd | cut -d : -f 1,7 | grep -v "#" )//:*/} )