Documentation

ContactMigrata help

Migrate Nextcloud Contacts to Microsoft 365

You want an on-prem address book in Exchange Online, and this page shows how ContactMigrata moves it there. The job follows the same DAV URL rules as any Nextcloud job, and it also needs a licensed mailbox on the Microsoft side. IceWarp acts as a source through a different connect page, and after that the job uses this same Microsoft destination.

What You’ll Learn

This page explains how Nextcloud CardDAV pairs with a licensed Microsoft 365 mailbox before any contact moves. The guide also covers the SSRF guard and the private IP allow entry that the connection requires. A short walkthrough places one Nextcloud work book directly onto the mailbox Contacts folder, so the mapping stays simple. IceWarp serves as an alternate source when your address book lives outside Nextcloud entirely and you still want this destination.

What you need

You need sign-in on both sides and write access on the destination mailbox before the job can start. ContactMigrata is free and contacts-only, because mail, calendar, and files belong to separate products that move them. A CSV export would have dropped groups and photos, and why not CSV explains that loss in full. You should begin with one book and then spot-check a group, a photo, and a contact that has two email addresses. An unlicensed Microsoft 365 user has no people store, so the destination cannot hold any contact for that user.

How to map the books

ContactMigrata maps the Nextcloud work book to the mailbox Contacts folder, because Microsoft 365 keeps people in that folder.

Connect and run

  1. First you connect the source, and Connect Nextcloud Contacts lists every CardDAV detail that the job needs.
  2. Then you add the destination, and Connect Microsoft 365 contacts covers the mailbox sign-in and the permission.

You then run the job, and the job honours a pause request between batches whenever you ask for one. After the job finishes, you open the destination and check one full contact before you scale up.

What comes across

ContactMigrata copies people, including names, emails, phones, postal addresses, organisation, job title, notes, and websites. Birthday data arrives too when the other side has a place to store that field. Groups copy as well, and a group is a list you named, such as Vendors or Family, provided the destination can store an equivalent list. Photos under about 512 KB copy with the person, while larger pictures are skipped and the rest of that contact still arrives. See contact photos and fields that survive for the exact size limits and the field list.

Contacts and groups that ContactMigrata can map copy across, while Nextcloud Files stay where they are. ContactMigrata does not copy Gmail, calendars, or files, because those belong to MailMigrata, CalendarMigrata, and FileMigrata. The job skips the company directory, and the interface also calls that list the GAL. ContactMigrata is not a CRM, and it does not merge two cards merely because they share a display name. Matching uses each contact's hidden id, or UID, inside one job, and duplicates and UIDs explains that rule.

A spreadsheet export is a poor shortcut, because CSV drops groups and photos and mints new ids. Those new ids mean a later job cannot tell that the records describe the very same people. You can read Why not just export CSV? for the full comparison of the two approaches.

Common problems

A 401 on Nextcloud points to the app password, so you should confirm the stored credential against the account. A "Mailbox not found" message means the license is missing, so verify the subscription on the Microsoft tenant. An SSRF error means a private IP lacks an allow entry, so you should add that address to the allow list. For an IceWarp source, you use Connect IceWarp and then send the job to this same destination.

You should not start a second job onto the same destination book, because that job would create duplicates. You should resume the first job instead of starting another one, since UID handling works per job. A new job does not remember the copied ids from the earlier run, and Duplicates and UIDs gives the details.

When you are ready, you run your first address-book migration or pick another pair from Common contact migrations.