Script is used to quickly mass-clone or remove tenants programmatically. Can be run from any ENV that has python installed.
git clone https://github.com/sstarzh/tenant-ops.git
cd tenant-ops
pip3 install -r requirements.txt
Newly cloned tenant names will begin with "SP" and a class number that you provide.
python3 lab_tenant.py clone <MSSP name> <MSSP API Key> <Clone from tenantId> <number of demo tenants to create> <Admin username> <Admin password> <class#>
Example:
python3 lab_tenant.py clone demoMSSP 0000-0000-0000-0000 1111-1111-1111-1111 10 testadmin supersecretpw 1
python3 lab_tenant.py delete <MSSP name> <MSSP API Key> <class#>
Example:
python3 lab_tenant.py delete demoMSSP 0000-0000-0000-0000 1111-1111-1111-1111 1