Small utility script to create an user both in a Nextcloud instance and at Migadu, a great email provider with good API support.
- Clone this project
- Execute
./gradlew install
(orgradlew.bat install
on Windows) - Find the executable at build/install/nextcloud-migadu-create-user/bin
Run the command
./nextcloud-migadu-create-user USERNAME DISPLAYNAME PASSWORD EMAIL NEXTCLOUDBASICAUTH NEXTCLOUDAPIURL MIGADUBASICAUTH MIGADUURL
Replacing:
Argument | Description |
---|---|
USERNAME | username/userid to be used at nextcloud |
DISPLAYNAME | full user name, will be used at both nextcloud and migadu |
PASSWORD | user's password, both for nextcloud and for the email (which should be used inside nextcloud, without the user knowing the email password) |
desired user email [email protected] | |
NEXTCLOUDBASICAUTH | user:password for nextcloud admin encoded with Base64 |
NEXTCLOUDAPIURL | url to connect to nextcloud i.e. https://cloud.example.com/ocs/v1.php/ |
MIGADUBASICAUTH | user:password for migadu admin encoded with Base64 |
MIGADUURL | Url to connect to migadu i.e. https://api.migadu.com/v1/ |