Help · Troubleshooting
Accounts not created
What to do when Destination accounts can't create people's accounts in the new tenant, from directory sync to Exchange refusing, with the PowerShell script as a way round.
Last updated
Every mailbox needs an account in the new tenant before a pass can copy into it. On the batch page, click Destination accounts to check them and create the missing ones. Each mailbox gets a state: Ready, No license, Missing, Missing (AD synced), No mailbox, Provisioning or Check failed. Find the one you see below.
Missing (AD synced): the tenant uses directory sync #
You see: Missing (AD synced), and when you click Create N accounts: N accounts are missing, and this tenant uses directory sync. Create them in on-premises AD and check again…
The new tenant has Entra Connect (directory sync) turned on. Accounts there normally come from the customer's on-premises Active Directory, not the cloud.
If sync still runs:
- Have the customer's admin create the users in on-premises AD, with the addresses the batch uses.
- Wait for them to sync to Microsoft 365.
- Click Check again.
If sync no longer runs (it was switched off, but the tenant still says it's on):
- Tick Directory sync (Entra Connect) is on in this tenant, but it no longer runs: create cloud accounts anyway.
- Click Create N accounts.
Important
Only tick it if sync is really off. If sync still runs, it could later match or duplicate the accounts Mygration made. Ticking it is recorded in the audit log.
"One-time setup needed to create mailboxes" #
You see: One-time setup needed to create mailboxes in northshoreanimal.example, after you click Create N accounts.
Creating mailboxes needs Exchange admin access in the new tenant, which the app doesn't have yet. Copying into mailboxes that already exist doesn't need it.
- It asks for consent: click Open consent link, have a Global Administrator of the tenant accept, then follow the next steps the panel shows.
- It asks for the Exchange role: follow the steps shown. In the Entra admin center, go to Identity → Roles & admins → Roles & admins, open Exchange Administrator, click Add assignments, pick the migration app, then Next → Assign.
Then wait. A new role can take from a few minutes to a few hours to work in Exchange. The panel checks every 30 seconds (or click Check now) and shows Continue: create N accounts once it works.
Exchange refuses to create the mailboxes #
You see: under the create button, a line per person such as Exchange Online refused New-Mailbox: HTTP 403 — the app's Exchange role doesn't allow this…, or New-Mailbox failed: … with Exchange's own reason.
- A 403, or "isn't within your current write scope": the app's Exchange role is missing or not working yet. See "Exchange refused Get-Mailbox (403)" in Troubleshooting: connections.
- Another reason: read Exchange's words. Check that the address's domain is verified in the new tenant, and that the address isn't already used by someone else there.
Use the PowerShell script instead #
When creating fails, or the app can't have an Exchange role in that tenant, an Exchange admin can create the missing mailboxes by hand.
Click PowerShell script (beside Can't fix it now? An Exchange admin can create the missing mailboxes with PowerShell instead.). It downloads
Create-Mailboxes.ps1.Give it to an Exchange admin of the new tenant. They run it in PowerShell 7 with the ExchangeOnlineManagement module (
Install-Module ExchangeOnlineManagement -Scope CurrentUser, once):.\Create-Mailboxes.ps1 -WhatIf # shows what it would do .\Create-Mailboxes.ps1It signs them in to Exchange Online, creates the user, shared, room and equipment mailboxes still missing, and writes each user's random password to a
passwords-….csvbeside the script. Mailboxes already there are skipped, so it's safe to run twice.In Mygration, click Destination accounts → Check again. The mailboxes show Ready or No license.
Note
The passwords from the script are only in its CSV. Send them to the customer the way you normally send passwords.
No mailbox #
You see: No mailbox. Its detail says The user exists but has no mailbox. Assign a license that includes Exchange Online, then check again in a few minutes.
The account exists, but has no license with Exchange Online.
- Click Manage licenses (or Licenses… above the mailbox list) and give the person a license that includes Exchange Online.
- Wait a few minutes, then click Check again.
If the detail says The user is licensed but Exchange hasn't created the mailbox yet, just wait: it usually takes 5 to 30 minutes. Then Check again.
Provisioning #
You see: Provisioning, or N new mailboxes are still being set up by Exchange Online (a few minutes); check again to confirm.
Mygration just created them. Exchange takes a few minutes to finish. Click Check again shortly. You can start a pass meanwhile: those mailboxes wait until they're ready.
Other messages #
| You see | What to do |
|---|---|
| Check failed | Hover the state to see why. Fix it, then Check again. |
| The destination tenant isn't connected. Finish admin consent and Check it on the customer page. | See Connecting a customer's Microsoft 365 tenant. |
| Enter a password of at least 8 characters, or generate them | Type a longer password under Use this password, or choose Generate a strong password for each person. |
| Not enough licenses (in the license manager) | No licenses of that type are free. Buy more or free some up, then apply again. |
| Usage location required. | Set the person's usage location (a two-letter country code such as US) in the license manager, then apply again. |
| Sign-in is managed in on-premises Active Directory for this account. | A synced account: make the change in on-premises AD and let it sync. |