# Nextcloud

> Connect a self-hosted Nextcloud server to Tidal Control with an administrator app password, so compliance tests read its accounts, 2FA and link policy.

Source: https://tidalcontrol.com/docs/integrations/nextcloud

Tidal Control's Nextcloud integration reads the accounts and security settings of one self-hosted Nextcloud server for compliance purposes. It signs in as an administrator with an app password and only sends read requests. Who has access, who is an administrator, whether two-factor authentication is enforced and how files may be shared by link are what auditors ask about under access control and information transfer, and this integration turns your Nextcloud setup into evidence for them.

## What this integration monitors

- **Two-factor authentication:** Whether the server's two-factor enforcement covers every enabled account
- **Administrators:** Which accounts are in the `admin` group, as the starting point of an access review
- **Dormant accounts:** Whether every enabled account has signed in within the last 90 days
- **Public links:** Whether new public links need a password, and whether they get an expiry date users cannot remove
- **Audit logging:** Whether the **Auditing / Logging** app (`admin_audit`) is enabled

## Requirements

- Super User role in Tidal Control
- A Nextcloud server that is reachable from the internet over HTTPS. A server that only answers on an internal network or through a VPN cannot be connected
- An account in Nextcloud's `admin` group. A group administrator is not enough
- One connection per Nextcloud server

## Configuration step-by-step plan

We'll create a **dedicated administrator account** in Nextcloud, create an app password for it, then add the connection in Tidal Control.

**Configuration steps:**

1. **Create a dedicated administrator account**
2. **Create an app password**
3. **Configure the integration in Tidal Control**

## Step 1: Create a dedicated administrator account

- Sign in to Nextcloud as an administrator and go to **Accounts**
- Click **New account**
- Give it an account name, for example `tidal-control`, and a strong password
- Under **Groups**, select `admin` and no other group
- Save the account

> **info:**

**Why a dedicated account.** Nextcloud cannot limit what an app password may do: it carries every right of its account. An account that is only in the `admin` group and holds no files keeps that reach as small as Nextcloud allows, and the connection keeps working when a colleague leaves. Tidal Control only sends read requests and never opens files, shares, calendars or contacts.

## Step 2: Create an app password

- Sign in to Nextcloud as the account from step 1
- Go to **Personal settings → Security**
- Under **Devices & sessions**, enter an app name, for example `Tidal Control`, and click **Create new app password**
- **Copy the app password** immediately: it is shown only once

If two-factor authentication is enforced for the account, Nextcloud asks you to set up a second factor before it lets you create an app password. The app password itself keeps working without one.

## Step 3: Configure the integration in Tidal Control

- Go to **Settings → Integrations** in Tidal Control
- Click the **plus icon** next to **Nextcloud**
- Fill in the configuration:
  - **Name:** A descriptive name, for example `Nextcloud production`
  - **Server URL:** The address of your server, for example `https://cloud.example.com`
  - **Username:** The login name of the account from step 1
  - **App password:** The app password from step 2
- Click **"Create"** to save the integration

Tidal Control tests the connection when you save it. An account that is not a full administrator is refused at this point.

## Configuration fields explained

The integration dialog asks for the following values:

**Name:**
- A descriptive name for this connection
- For example: `Nextcloud`, `Nextcloud production`

**Server URL:**
- The HTTPS address of the server, including the sub-path if Nextcloud is installed under one, for example `https://example.com/nextcloud`
- You can paste the address from your browser: everything from `/index.php` or `/apps` onwards is dropped
- Plain HTTP, internal host names and private IP addresses are refused

**Username:**
- The login name of the administrator account, not its display name or email address

**App password:**
- The app password from step 2, not the account's login password
- Required, stored as a secret, and must not contain spaces

## What Tidal Control reads, and what it leaves out

Tidal Control reads the account list with each account's groups, last sign-in and whether it is enabled, the two-factor enforcement policy, the sharing settings for public links, the server version and the list of enabled apps. It never reads files, shares, file names, calendars, contacts or messages, and it changes nothing on the server.

Three limits of Nextcloud shape what the tests can say:

- Nextcloud does not report whether an account has set up a second factor. The two-factor test checks whether enforcement covers the account. A covered account must set one up before it can use Nextcloud
- An administrator can only list their own shares, so the link tests check the server's policy for new links and not the links that already exist
- Nextcloud keeps no creation date for accounts, so an account that has never signed in counts as dormant

## Verification

The integration is working when all of the following are true:

- Settings → Integrations shows Nextcloud under **Configured Integrations**
- Nextcloud tests are available in the Tests section
- Test refresh delivers results without authentication errors

## Frequently asked questions

**We sign in to Nextcloud through single sign-on. Does the two-factor test still pass?**
Only if Nextcloud's own enforcement is on. The test reads the setting under Administration settings → Security and cannot see a second factor that your identity provider asks for. In that case the test fails although sign-in is protected.

**Our Nextcloud is only reachable on the office network. Can we connect it?**
No. Tidal Control calls the server from the internet, so it needs a public HTTPS address with a valid certificate.

**Does the app password expire?**
Not on a date. Nextcloud removes app passwords that have not been used for a year, and the daily test run keeps this one in use. You can revoke it at any time under **Devices & sessions**.

**Do accounts from LDAP or another directory count?**
Yes. They are listed like local accounts and go through the same tests.

## Common problems

**"The Nextcloud server URL must be a plain HTTPS address"**
- The address starts with `http://` or carries a user name. Use the `https://` address of the server

**"The Nextcloud server URL must name a public host"**
- The address is an internal host name or a private IP address. Tidal Control can only reach a server on a public address

**The connection is refused although the password is correct**
- The account is not in the `admin` group. A group administrator can list its own groups' accounts but cannot read the server settings, so add the account to `admin`

**Authentication errors after a refresh**
- The app password was revoked or the account was disabled. Create a new app password and update the connection

**The two-factor test fails for every account**
- Enforcement is off, or this Nextcloud release no longer offers the settings endpoint the test reads. Check **Administration settings → Security** first, and contact support if enforcement is on

### Still can't figure it out?

Send an email to support@tidalcontrol.com, and we'll get back to you as soon as possible.

> **info:**

**Gather support info:** Note your Nextcloud version, exact error messages, and which steps you've already tried. This speeds up the solution considerably.
