Realistic demo data for an OpenCloud dev or demo instance: a fictional renewable energy company with 1,000 users (with profile pictures), 25 project spaces, ~5,400 files with real content (ODF, Office, PDF, images), version history, tags, shares between users, folder shares for external partners and public links.
cd opencloud-dummy-files
python3 populate.pyThe script asks for three things – press Enter to accept the default:
OpenCloud URL [default: https://host.docker.internal:9200]
Admin user [default: admin]
Admin password [default: admin]
- Full run takes about 15–25 minutes on a local instance. (You can run it again at any time – it only adds what is missing and updates what changed.)
macOS/Linux: ./populate.sh (both just call python3 populate.py).
python3 populate.py --yes # use the defaults
python3 populate.py --url https://localhost:9200 --admin admin:secret
OC_URL=https://cloud.example OC_ADMIN_USER=admin OC_ADMIN_PASSWORD=secret python3 populate.py --yesOr edit the SETTINGS block at the top of populate.py once.
- Realistic Content (25 Spaces, 5.000 files incl. modification dates, tags & versions)
- ~4,600 shares between users (≈ 5 per user), 50+ public links, tags on ~600 files
- 1.000 Users with Groups and profile pictures
- All Details in
data/metadata.json
All demo users have the password demo. Good accounts for demos:
Public links are protected with the password Weyland-2026!.
| User | Who | Sees |
|---|---|---|
elena.marquez |
Project Director, Harrow Bay Offshore Wind | the flagship project, lots of shares |
liam.mcallister |
Project Manager, Millbrook Solar & Storage | planning, community engagement |
amara.okafor |
CEO | almost everything, board space |
david.chen |
Asset Operations Manager | Kestrel Ridge wind farm, operations |
julia.hoffmann |
HR Business Partner | HR (confidential), handbook, onboarding |
lars.henriksen |
External – Halden Turbine Systems | only folders shared with his company |
rachel.moss |
External – Marlow Ecology | only environmental folders |
- Python 3.9+ – nothing to install, the script uses only the standard library.
- An OpenCloud admin account. An app token works instead of the password.
- Basic auth enabled on the server – the script logs in as the demo users to upload their
personal files and profile pictures. In OpenCloud:
PROXY_ENABLE_BASIC_AUTH=true. - Optional: favourites are only set if they are enabled on the server.
python3 populate.py --resetDeletes the 25 spaces, the 1,000 users (incl. their personal files) and the groups of this dataset.
| Problem | Fix |
|---|---|
Cannot reach https://host.docker.internal:9200 |
Use the URL you open in your browser, e.g. https://localhost:9200. |
Login failed (401) |
Wrong password, or basic auth is disabled (PROXY_ENABLE_BASIC_AUTH=true). |
| Personal files / profile pictures skipped | The demo users already existed with another password – run with --user-password <their password> or reset first. |
| Run was interrupted | Just start it again. |
All companies, people and numbers are fictional. All Content, faces and photos are generated.