Best practices for designing, encoding, and validating CSV mapping files used to drive M365 tenant migrations, from schema to pre-flight checks.
The humble CSV mapping file is the contract that drives a tenant migration: one row per object, source on the left, target on the right. It is also where migrations quietly break — a UPN mangled by Excel autocorrect, a UTF-8 BOM that throws off the first column header, a trailing space that fails a lookup. This guide covers how to design, encode, and validate mapping CSVs so the file you run is the file you intended.
A good mapping file has a deliberate, documented schema with stable column names your scripts reference by header, never by position. Include the join key, the human-readable identity, and a status column the run can update.
| Column | Purpose | Example |
|---|---|---|
SourceUpn | Source identity (reference) | jane.doe@old.com |
SourceKey | Stable join key | E10293 (employeeId) |
TargetUpn | Target identity to create/match | jane.doe@new.com |
UsageLocation | Required for licensing | US |
Sku | License to assign | SPE_E3 |
Wave | Migration batch | Wave2 |
Status | Updated by the run | pending / done / failed |
Keep columns flat and atomic — one value per cell. If you need a list (multiple aliases), use a delimiter you control and document it.
Is it really free?
Yes — completely. No trial, no card, no catch. Enter your email and the full guide opens instantly.
Will you spam me?
No. We'll email your copy and, only if you opt in, the occasional genuinely useful migration tip. One click unsubscribes you for good.
Can I share it with my team?
Please do. Forward the PDF or send them the link — every teammate can grab their own copy.