The Remote Server Returned an Error (401) Unauthorized

Authentication and credential issues preventing migration access.

Last updated: 2025-01-15 Troubleshooting

Error Message

Migration Authentication Error

The request failed. The remote server returned an error: (401) Unauthorized

This error occurs when the migration service cannot authenticate with the source or target environment.

Authentication Flow

🔐
Credentials
Submitted
🚫
Validation
Failed
401
Unauthorized
Access denied

Mail Migration Causes

Exchange / Office 365 Issues

Missing API Permissions

Azure AD application lacks "full_access_as_app" permission for Exchange.

Incorrect Credentials

Username or password in the connector is wrong or has changed.

MFA Enabled

Multi-Factor Authentication on the migration account blocks automated access.

Single Sign-On Active

SSO systems redirect authentication, preventing direct login.

Missing License

Migration account lacks valid Office 365 or Exchange license.

Legacy Auth Disabled

Exchange on-premises has legacy authentication turned off.

File Migration Causes

OneDrive / File Storage Issues

Connector Credentials Invalid

The credentials stored in the connector are incorrect or expired.

No OneDrive Access

Migration account doesn't have access to the user's OneDrive.

Application Not Installed

The Cloudiway application isn't properly installed on the tenant.

SharePoint Site Migration Causes

Insufficient Site Permissions

Admin account isn't a Site Collection Administrator for the target.

Site Collection Missing

Target site collection doesn't exist yet in SharePoint.

Solutions

For Mail Migration

1

Verify Credentials

Log into your Exchange server or Office 365 via browser using the same credentials configured in the connector.

2

Disable MFA

Turn off Multi-Factor Authentication for the migration service account. Use a dedicated service account with MFA excluded.

3

Bypass SSO

Exclude the migration account from SSO policies or configure direct authentication.

4

Assign Licenses

Ensure the migration account has a valid Exchange or Office 365 license.

5

Enable Legacy Auth

For Exchange on-premises, enable legacy authentication protocols to allow EWS connections.

For File Migration

  1. 1. Test login at portal.office.com with connector credentials
  2. 2. Grant migration account access by running preprocessing
  3. 3. If needed, recreate the connector to reinstall the application
  4. 4. Alternatively, manually add the certificate to the Azure app

For SharePoint Migration

  1. 1. Add your administrator to Site Collection Administrators
  2. 2. Create the target site collection before starting migration
  3. 3. Verify the admin has Full Control permissions

Quick Verification

The fastest way to verify credentials: log in manually using the same username and password configured in your Cloudiway connector. If you can't log in directly, the migration won't work either.

Was this article helpful?

We value your feedback

Help us improve your experience

What would you like to share with us?

Need direct support? Open a ticket