Skip to main content

Bulk create testusers for ownCloud / Nextcloud

1 min read

Maybe someone need it, too. A small shell script to create hundreds of users and groups:

#!/bin/bash
set -e
export OC_PASS=test12

for ((j=1;jdo
for ((i=1;i do
./occ user:add pomes_$i-$j --password-from-env -g bdo_$j
done
done

Thanks @nickvergessen for the occ tip :)

Update 4.4.2017:

- Now with groups