Skip to content

Nextcloud application

MIA connects to the Nextcloud Provisioning API to inventory active accounts and open or close their access.

Authentication type and prerequisites

Authentication type — Basic Auth with an administrator account and an app password.

Prerequisites

The account must be a Nextcloud administrator. The Provisioning API app is enabled by default in Nextcloud.

Create an app password

  1. Sign in to Nextcloud with the administrator account dedicated to MIA.
  2. Open Personal settings → Security → Devices & sessions.
  3. Enter MIA as the app name, then click Create new app password.
  4. Copy the generated password immediately.

Connect Nextcloud to MIA

In MIA, open Applications → Add an application → Nextcloud, then enter:

  • Login: the administrator account username;
  • Password: the generated app password;
  • Domain: the full instance URL without an API path, for example https://cloud.example.com or https://example.com/nextcloud.

Confirm the connection. MIA then queries the OCS API and synchronizes active accounts.

When adding a user, MIA automatically retrieves the Nextcloud groups available to the administrator account. You can optionally select one group for the new account.

Account deletion

Closing access from MIA deletes the corresponding Nextcloud account. This operation is permanent in Nextcloud.

API reference