Check for gid in addition to group