Documentation

Help for MailMigrata and the whole suite

Connect Google Calendar and Microsoft 365

CalendarMigrata reads and writes calendars only after you sign in, and this page walks through that sign-in step. You must connect the account that actually owns the calendars, because a different account holds a different calendar set. You then verify the returned list before you run, which catches a wrong account before any calendar operation starts.

How do I connect Google Calendar?

Consumer Google Calendar opens an OAuth consent popup rather than an iframe, which means the browser handles the prompt directly. CalendarMigrata requests the calendar scope alone during that popup, so the consent screen asks for no Gmail access. Google Workspace accounts can use delegated OAuth as the signed-in user, or a service account holding domain-wide delegation rights. That second option impersonates user@domain and carries only the calendar scope, because a named UPN keeps that delegation narrow. The operator must grant consent with the same account that owns the target calendars, since a different account cannot read them. A Workspace admin who consents on behalf of a personal user cannot see a colleague's calendar unless that colleague has shared it explicitly.

How do I connect Microsoft 365?

The delegated OAuth path requires that the signed-in user can read and write calendars on every intended mailbox. The app-only path instead needs an Entra app granted calendar reading and writing permissions, plus tenant-wide admin consent. You should also supply a UPN naming whose calendar to touch, and this is the path that MSPs use for tenant work. CalendarMigrata is calendar-only, so you must not combine Graph mail scopes with calendar scopes in a single authorization request. A broken token exchange fails the whole connection, because the returned token cannot satisfy both scope families at the same time.

What about iCloud?

iCloud needs the Apple ID plus an app-specific password generated at appleid.apple.com rather than the ordinary login password. The CalDAV host is typically https://caldav.icloud.com/, and automatic discovery usually locates the calendar home from that address. When that probe fails, you can pin the collection URL for that calendar by hand so CalendarMigrata never repeats the lookup.

Why is the calendar list empty after I connect?

You should run verify to list the calendars before you start any sync, because that check exposes a setup fault early. An empty calendar list usually means the wrong tenant, an IMAP-style password on iCloud, or a CalDAV URL pointing at the web UI. Each of those faults leaves CalendarMigrata with no usable calendar collection, so the start URL must point at a DAV endpoint. The OAuth and app passwords article is the authentication cheat sheet that explains how each provider handles sign-in. The Google, Microsoft 365, and iCloud page documents what each of those three vendors actually stores.