Help · Troubleshooting

Troubleshooting: connections

What to do when a Microsoft 365 connection won't check, Exchange refuses the app, or SharePoint needs a certificate.

Last updated

Find the message you see, then follow the steps under it. For setting a connection up from the start, see Connecting a customer's Microsoft 365 tenant.

You see: Signed in to the tenant but not allowed to read the organization when you click Check, just after the customer's admin accepted the consent link.

Microsoft can take a few minutes to apply a new consent.

  1. Wait a few minutes.
  2. Click Check on the connection again. Each check signs in afresh, so it works as soon as Microsoft has applied the consent.

If it still fails after an hour or so:

  1. Click Re-consent (or Consent link) on the connection.
  2. Have a Global Administrator of the tenant open the link and accept every permission it asks for.
  3. Click Check.

Exchange refused Get-Mailbox (403) #

You see: Exchange Online refused Get-Mailbox: HTTP 403 — the app's Exchange role doesn't allow this (or it has no Exchange role in this tenant). You might see it when adding mailboxes, running an assessment, checking mailbox types, or creating accounts. Other actions can be refused the same way, with another command's name in the message.

The migration app has no Exchange role in that tenant yet.

  1. In the customer's Microsoft Entra admin center, go to Roles & admins → Exchange Administrator.
  2. Click Add assignments, and add the Mygration Migration Engine app.
  3. Wait. A new role can take from a few minutes to a few hours to work in Exchange.
  4. In Mygration, click Check on the connection, then What the app can do here. The Mail and Groups lines should show green ticks.
  5. Try again. In a mail batch whose shared mailboxes weren't recognized, click Mailbox type → Check mailbox types again.

If it's still refused after the role has had time to work:

  • Click Re-consent on the connection and have a Global Administrator accept. The consent must include Manage Exchange As Application.
  • If What the app can do here says Entra gives the app the role, but Exchange doesn't go along yet, check again later. If it's still refused after a day, remove the role from the app and give it again.

Tip

Can't give the app an Exchange role in the new tenant? When creating accounts fails, Destination accounts offers a PowerShell script that an Exchange admin can run to create the missing mailboxes instead. Then click Check again.

"Needs the Exchange Administrator role" #

You see: under What the app can do here, Mail-enabled security groups: Needs the Exchange Administrator role: the app has Exchange Recipient Administrator, which can't.

Exchange Recipient Administrator can create mailboxes and distribution lists, but not mail-enabled security groups. Give the app Exchange Administrator in that tenant (Roles & admins), wait for it to work, then click Check.

SharePoint needs a certificate #

You see one of these:

  • Under What the app can do here: The migration app has no certificate.
  • On a SharePoint or OneDrive batch: Created By and Modified By will show the app, and version history and permissions can't be copied, until the migration app has its certificate.
  • When moving a whole site: Making a site needs the migration app's SharePoint certificate.

SharePoint, OneDrive and Teams file moves need a certificate on the migration app to keep authors, versions and permissions. An admin adds it once, for every customer:

  1. Go to Tenant → Microsoft 365 apps, to SharePoint certificate.
  2. Click Create a new one.
  3. Click Download its .cer.
  4. In your own Entra admin center (your MSP's tenant, not the customer's), go to App registrations → the migration app → Certificates & secrets → Certificates → Upload certificate, and upload the .cer.
  5. Back in Mygration, click Check and use it.

Or run Set up automatically on the same page and tick Add the SharePoint certificate too. Already have a certificate? Use Upload a .pfx instead.

You see: SharePoint refused the app's certificate. Check that the certificate is uploaded to the migration app's registration (Certificates & secrets), and that the customer's tenant has consented. Then click Check on the connection.

Other messages #

You see What to do
The migration app isn't consented in this tenant yet Send the consent link to the tenant's Global Administrator: Consent link on the connection.
No Microsoft 365 tenant was found for that domain Check the spelling. Use a domain verified in that tenant, or its .onmicrosoft.com domain.
The migration app's client secret is invalid or expired Every customer connection stops at once. An admin makes a new secret: Tenant → Microsoft 365 apps → Set up automatically, with Make new client secrets even where the panel has one ticked.
Blocked by a Conditional Access policy in the customer tenant Ask the customer's admin to check their Conditional Access policies in the Entra admin center.
AADSTS50011 when someone opens the consent link The app's address doesn't match the panel's. Open the panel at its own hostname and run Tenant → Microsoft 365 apps → Set up automatically again.
Connect Microsoft 365 is greyed out The Microsoft 365 apps aren't set up yet. An admin does it under Tenant → Microsoft 365 apps.