You can use the occ-command user:add. Try it first with one user and then program a script with variables. Maybe you can use tis script or you find a better script in the internet.