Synchronising Outlook with Nextcloud using CalDavSynchronizer

If you want to synchronize address books or calendars from Outlook with your Nextcloud for backup or centralized storage, this guide will show you how to achieve this.

Synchronising Outlook with Nextcloud using CalDavSynchronizer

Outlook offers a wide range of features besides only sending and receiving emails. Especially known are the possibilities to create and maintain an address book with contacts and several calendars. If you want to synchronize this data to your Nextcloud for backup or centralized storage reasons, this guide will show you how to achieve this.

Prerequisites

  • Account in a Nextcloud
  • Nextcloud needs to be configured to provide the CalDAV and CardDAV endpoints, which we will use for synchronization
  • Nextcloud needs the two applications calendar and contacts installed, which will be used to store and visualize the data in Nextcloud
  • Installed Outlook instance with your configured mail account

The prerequisites CalDAV and CardDAV endpoints and Calendar and Contacts applications have to be fulfilled by the administrator of the Nextcloud instance you want to use.

💡
If you are interested in a hosted Nextcloud instance, feel free to contact me at [email protected].

Download CalDavSynchronizer

For the Synchronization of our data, we will use the open-source tool called CalDavSynchronizer. Contrary to the name, not only calendars (CalDAV) but also contacts (CardDAV) can be synchronized. As the software is open source you can check out the source code on GitHub, where you can also download the latest release or simply follow this link: https://caldavsynchronizer.org/download-2/.

💡
As the CalDavSynchronizer is a client-side tool you have to install it on every system, where you are using Outlook and want to connect it to Nextcloud.

Besides Nextcloud the CalDavSynchronizer has support for a wide variety of CalDav servers like cPanel, iCloud, ownCloud, Posteo, SOGo, Synology DSM, Zimbra, and many more.

After finishing the download you can install CalDavSynchronizer on your local system.

Setting Up Nextcloud

Inside your Nextcloud you will need a calendar, where the events from Outlook will be synchronized to. You can use an existing one or create a new one like shown in the screenshot:

Add a new calendar to store the events from Outlook.

No matter if you choose an existing or a new one, you will need the private link of your chosen calendar. To retrieve this link you first click on the edit icon beside the name of the calendar that you want to use:

Click the edit icon beside your chosen calendar.

On the popup you copy the private link of the calendar:

Copy the private link of the calendar.

The private link should look something like https://yournextcloud.com/remote.php/dav/calendars/<USERNAME>/<CALENDARNAME>.

Setting up an API token

For authenticating the CalDavSynchronizer against your Nextcloud you should use an API token. Such a token can be created in your user settings in the menu entry Security. There you will find the section Device & sessions. Enter a Device name - e.g. CalDavSynchronizer - and press Create new app password.

Add a new API token that will be used within the CalDavSynchronizer for authentication against your Nextcloud.

Copy the API token shown in the Password field and select Done afterward:

Copy the API token.

With this, you have everything set up inside of your Nextcloud and can continue with configuring Outlook.

Setting Up Outlook

When you have installed the CalDavSynchronizer successfully there will be a new tab called CalDav Synchronizer in Outlook. Click on this tab and open the Synchronization Profiles:

There you will define the connection to Nextcloud and which calendar should be synchronized in a Synchronization Profile. Add a new profile by clicking the green plus symbol:

Add a new Synchronization Profile by clicking the green plus symbol.

In the new popup, you choose Nextcloud and press OK.

Choose Nextcloud.

After this, a new entry in the Synchronisation Profiles will be added.

With each synchronization profile, you can connect an Outlook folder with an endpoint.

There we need to define the Outlook folder we want to synchronize - like a calendar or a contact list -, the Username, and the previously defined API token as Password.

Choose the calendar that you want to synchronize.

After selecting the Outlook folder and entering our authentication data, we can test that a connection to Nextcloud can be established with the Test or discover settings button:

We can test the successful connection between Outlook and Nextcloud.

As the final step, you can define which type of synchronization you want to achieve and how often the synchronization should happen.

If you only want to synchronize your calendar from Outlook to Nextcloud you simply choose Outlook --> Server (Merge). If you also want to be able to define new events inside Nextcloud that will be synchronized to Outlook you choose Outlook <-- --> Server (Two-Way).