Split the contents of the file /etc/passwd by the delimiter ":", take the second field, pass it to xargs, replace each 4 characters with a hyphen, and execute the command.
cut -d: -f2 /etc/passwd | xargs | sed -E 's/(.{4})(.{4})(.*)/echo "\1-\2-\3"/' | sh