Documentation

Help for MailMigrata and the whole suite

Connect Apple iCloud Calendar (CalDAV app-specific password)

iCloud Calendar is CalDAV, so it is neither the Graph protocol nor the iCloud Drive file service. Apple requires an app-specific password whenever the Apple ID has 2FA enabled, because your normal iCloud password will fail. The host you configure is caldav.icloud.com, and that is the only CalDAV endpoint this guide describes in detail. This guide covers CalendarMigrata, not FileMigrata, because there is no public iCloud Drive files API that either tool could call.

What You’ll Learn

  • You begin by creating an Apple app-specific password that the CalendarMigrata connection will use for authentication.
  • The setup then needs a username and a host, and this page names both values before you type anything.
  • Discovery presents several iCloud calendars, so you must decide which of them to tick and which to leave.
  • Family Sharing can restrict member access, and this page explains the read-only cases you may hit.
  • Floating all-day events keep unusual timing rules, and a later section describes how that behavior affects the destination.



What you need

  • You need an Apple ID that has two-factor authentication switched on, because Apple ties app-specific passwords to that setting.
  • You generate an app-specific password labeled CalendarMigrata at appleid.apple.com under App-Specific Passwords, and you copy the value once.
  • You must supply the Apple ID email address as the CalDAV username, because that address identifies the account.

Authentication combines CalDAV with an Apple app-specific password, because the provider rejects the ordinary iCloud login as insufficient. CalendarMigrata sends every discovery and sync request for this account to the endpoint at https://caldav.icloud.com.



Connect in CalendarMigrata

  1. First you create the app-specific password at appleid.apple.com and copy the value once, so the next step can paste it into CalendarMigrata.
  2. You choose iCloud inside CalendarMigrata, and the username is the Apple ID that owns the calendars.
  3. The password field takes the app-specific password, not the ordinary iCloud login password, because only the former satisfies 2FA.
  4. Discovery should find the Home and Work calendars plus every other one that the account already holds.
  5. iCloud stores those groups as collections rather than Google calendar groups, so the two products use different vocabulary.
  6. CalendarMigrata skips attachments over about 512 KB, and Calendar attachment limits explains why that ceiling exists.

When the connection succeeds, you should see the same calendars that the provider’s own calendar app shows. An empty list usually means the wrong identity or the wrong URL, and it never points to a mysterious empty account.



Which calendars should you pick?

Each iCloud calendar is a collection, so DAV discovery can show calendars that the iPhone hides from view. You should tick only the ones you actually want, because the server lists every collection that it finds.

You should leave holiday overlays and subscribed calendars off unless you know for certain that the destination can store them. The mapping sends each work calendar to a work destination and each personal one to a clearly named personal calendar.



What copies, and what stays behind

CalendarMigrata copies events, repeating series with exceptions, and timezone data, so the timing usually survives the move into the destination. Small attachments under about 512 KB come along with the events that reference them, because the size limit allows them. Mail, contacts, and files belong on MailMigrata, ContactMigrata, and FileMigrata, because CalendarMigrata moves calendars and nothing else.

Read How RRULE series and exceptions survive a move and VTIMEZONE and why 9am stays 9am when you want the technical path.

Using the iCloud login password with 2FA enabled always fails, because Apple requires an app-specific password instead. Only the generated credential works, so you must create a fresh one before you retry the connection in CalendarMigrata. Family Sharing calendars may be read-only for some members, so you should check permissions before you promise a copy. iCloud likes floating all-day entries, and a spot-check of those is wise before you trust the result of the move. See All-day events and floating times.



Common problems

401 Unauthorized appears when you used the normal password or when someone revoked the app-specific password. You should generate a fresh credential and reconnect, because the old one no longer authenticates against the CalDAV endpoint.

Empty discovery means you used the wrong Apple ID, so you must use the ID that appears at icloud.com/calendar.

On-device Calendar.app without iCloud stays local, so you should enable iCloud Calendar inside it or export an ICS file yourself. CalendarMigrata speaks iCloud CalDAV, so a purely local Calendar.app gives it nothing that it could read.

iCloud Drive files need FileMigrata, and even that tool finds no public files API from Apple.



Next steps

When the calendars appear, you should continue with Run your first calendar migration to finish the setup work. The OAuth and app passwords page is the auth cheat sheet, and Common calendar migrations lists the usual pairs.

CalendarMigrata is free and calendar-only, so this calendar migration does not cost you anything at all. When you need mail moved as well, MailMigrata handles that separate migration for you.