Documentation

ContactMigrata help

UID normalization

This page explains how ContactMigrata compares the same person across Google, Microsoft 365, and CardDAV before it copies that contact. A UID is the hidden identifier inside a contact record, and ContactMigrata reads it so one job never copies a person twice.

ContactMigrata never merges two records by display name, because a matching label does not prove that the two entries describe one human being. Two Jane Does with different ids therefore stay two separate people, because ContactMigrata behaves as a migration tool rather than a CRM.

Providers encode that identifier in different ways, so ContactMigrata normalizes each format before it compares one account with another. Microsoft stores a long mailbox id, while Google uses a people id that belongs to its own account system.

CardDAV is the protocol that iCloud, Fastmail, and Nextcloud use to exchange contacts, and those services often send a UUID for each record. The CardDAV format sometimes wraps that UUID in urn:uuid: text or braces, so one identifier can arrive in several different forms. Before ContactMigrata compares any two records, the service removes both decorations, so the comparison always reads the underlying value.

A real GUID compares without regard to letter case, so ContactMigrata treats two such spellings as one identifier. Every other provider id stays an uppercase string, because ContactMigrata compares those identifiers exactly as the provider returns them.

When the source contact has no UID at all, ContactMigrata mints a fresh identifier for the destination card. Such a value is correct for a first copy, because a card still needs a stable key for later jobs. A later merge cannot rely on such an identifier, since the next export of the source produces a different value. The two records then fail to match, because their stored ids no longer agree with each other.

CSV import follows the same pattern, so ContactMigrata mints new ids as well and drops groups and photos during the copy.

See Duplicates and UIDs for the checks that catch a second job.