You can use the cut command which will select the specified column.
$cat /etc/passwd | cut -d : -f 1
Reference: https://www.networking-forums.com/programming-goodies-and-software-defined-networking/list-only-usernames
$cat /etc/passwd | cut -d : -f 1
Reference: https://www.networking-forums.com/programming-goodies-and-software-defined-networking/list-only-usernames