From the /etc/passwd file, extract the second field delimited by '-' and pass it as an argument to grep to search for the string "^sftp" in each of the fields.
cut -d '-' -f2 /etc/passwd | xargs -I {} grep -i "^sftp" {}