The Wild

Migrate Public Folders to Office 365 Groups: Step-by-Step

· 4 min read · Mammals

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Migrating public folders to Office 365 Groups consolidates legacy shared mailboxes, calendars, and contacts into a modern collaboration space. This guide walks you through the move using Microsoft's native tools, covering preparation, migration, and post-move cleanup. You'll need Exchange Online admin permissions and access to the Exchange admin center (EAC).

What You'll Need

  • Exchange Online administrator role (or equivalent permissions).
  • Access to the Exchange admin center (EAC) and the Microsoft 365 admin center.
  • A list of public folders you plan to migrate, with their sizes and item counts.
  • PowerShell (Exchange Online Management module) installed on your workstation.
  • Sufficient storage quota in Office 365 Groups (default 50 GB per group, but can be increased).

Step-by-Step

  1. Back up your public folders. Export each folder to a PST file using the Exchange admin center or PowerShell. This is a safety net in case the migration fails or data is lost.
  2. Create destination Office 365 Groups. In the Microsoft 365 admin center, create a group for each public folder (or a single group for multiple folders). Decide on naming conventions that map to your folder structure. Ensure group owners are assigned.
  3. Prepare a migration mapping file. Create a CSV file with columns: PublicFolderPath (e.g., \PublicFolder\Sales) and TargetGroupEmail (e.g., salesgroup@contoso.com). List every folder you want to migrate.
  4. Connect to Exchange Online via PowerShell. Run Connect-ExchangeOnline with an admin account. Authenticate when prompted.
  5. Verify public folder size and item counts. Use Get-PublicFolderStatistics to check for oversized folders (over 50 GB) or folders with many subfolders, as these may need special handling.
  6. Start the migration batch. Use the following cmdlet to create a migration batch:
    New-MigrationBatch -Name "PFtoGroups" -SourcePublicFolder -PublicFolderToGroupMapping (Import-Csv mapping.csv)
    Replace mapping.csv with your file path.
  7. Start the batch. Run Start-MigrationBatch -Identity PFtoGroups.
  8. Monitor progress. Check status with Get-MigrationBatch -Identity PFtoGroups and Get-MigrationUser -Status. The migration may take hours or days depending on volume.
  9. Verify migrated data. Once the batch shows "Completed", sign in to Outlook and check that emails, contacts, and calendar items appear in the target group's mailbox.
  10. Finalize the migration. Run Complete-MigrationBatch -Identity PFtoGroups to lock the migration and prevent further syncs.
  11. Remove the migration batch. After verification, remove the batch with Remove-MigrationBatch -Identity PFtoGroups.
  12. Delete or archive source public folders. Once you're confident, delete the original public folders from Exchange (or keep them in a read-only state for a while).

Common Mistakes

  • Not backing up before starting – always export to PST first.
  • Skipping the mapping file – without it, the migration won't know where to put items.
  • Migrating folders with subfolders incorrectly – each subfolder needs its own mapping entry if you want separate groups.
  • Forgetting to assign group owners – without owners, some features may not work.
  • Assuming all public folder types are supported – for example, public folder contacts and calendar items migrate, but some custom forms or rules may not.

Tips

  • Start with a small pilot folder to test the process before scaling up.
  • Communicate the migration timeline to users so they know when to expect changes.
  • Use a naming convention that makes it easy to map folders to groups (e.g., same name).
  • Consider using the Exchange admin center's built-in migration wizard instead of PowerShell if you prefer a GUI.
  • After migration, remind users to access the group via Outlook or Teams, not the old folder path.

Troubleshooting

  • Migration batch fails with "Access denied" – Ensure your admin account has the necessary permissions. Re-run Connect-ExchangeOnline with an account that has the Mailbox Import Export role.
  • Items are missing after migration – Check the migration report for errors. Use Get-MigrationBatch | Get-MigrationUser | Get-MigrationUserStatistics to see per-item status. Re-run the batch after fixing issues.
  • Group mailbox size exceeds quota – Increase the group's storage quota using PowerShell: Set-Group -Identity "group@contoso.com" -ProhibitSendReceiveQuota 100GB (adjust as needed).
  • Migration stuck in "Synced" state – This is normal; it means the initial sync is done and incremental syncs are running. Wait for the final completion.
  • Users can't see the group in Outlook – Ensure the group is not hidden. In the admin center, check the group's visibility setting.

Frequently Asked Questions

Can I migrate public folders to existing Office 365 Groups?

Yes, you can specify an existing group's email address in the mapping file. The migration will add items to that group's mailbox.

Will public folder permissions be preserved?

No. Permissions are not migrated automatically. You must add members and owners to the target groups manually.

What happens to public folder mail-enabled contacts?

They are migrated as contacts in the group's mailbox, but you may need to recreate them as external contacts if you want them to appear in the global address list.

Can I migrate only a subfolder?

Yes, specify the full path to the subfolder in the mapping file (e.g., \PublicFolder\Sales\Reports).

How long does migration take?

It depends on the amount of data. A few GB may take a few hours; larger migrations can take days. The system provides progress indicators.

Is there a way to roll back after migration?

If you have a PST backup, you can restore public folders from it. Otherwise, you can re-run the migration in reverse (not supported natively) – so always keep a backup.