A working guide to automating tenant-migration tasks with Microsoft Graph, covering app registration, scopes, key endpoints, and raw request patterns.
The PowerShell SDK cmdlets are convenient, but they are a thin wrapper over the Microsoft Graph REST API — and every migration eventually hits a property or endpoint the cmdlets do not expose cleanly. Knowing how to call Graph directly is what separates a fragile script from a robust automation. This guide covers the app registration and consent model, the endpoints a migration touches most, and the raw-request patterns that get you unstuck when a cmdlet falls short.
Graph permissions come in two flavors. Delegated permissions act as a signed-in user and inherit that user's limits. Application permissions act as the app itself, with no signed-in user — the right choice for unattended migration pipelines. Application permissions almost always require admin consent.
| Task | Endpoint | Application permission |
|---|---|---|
| Read source users | GET /users | User.Read.All |
| Create target users | POST /users | User.ReadWrite.All |
| Read/write groups | /groups | Group.ReadWrite.All |
| Assign licenses | POST /users/{id}/assignLicense | User.ReadWrite.All, Organization.Read.All |
| Read directory roles | /directoryRoles | RoleManagement.Read.Directory |
| Read audit logs | /auditLogs/directoryAudits | AuditLog.Read.All |
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.