Pre-Processing Error: Wrong Tenant

Fix authentication errors caused by incorrect tenant name configuration.

Last updated: 2025-01-15 Troubleshooting

Error Message

Pre-Processing Authentication Failure

Pre-Processing Error: Error Authenticating: invalid_resource... You might have sent your authentication request to the wrong tenant.

This error occurs during preprocessing when the connector's tenant name is incorrectly configured.

Tenant Name Format

Wrong

  • contoso.com
  • contoso.onmicrosoft.com
  • contoso.net

Correct

  • contoso
  • fabrikam
  • mycompany

Root Cause

Incorrect Tenant Name Format

This error occurs when the Tenant Name field in your connector is incorrectly configured. Common mistakes include:

Including domain extensions

Adding .com, .net, .org, or .onmicrosoft.com

Using primary SMTP domain

Entering your email domain instead of the technical tenant name

Including full URL

Entering https://tenant.sharepoint.com instead of just the tenant name

Solution

Find and Enter Correct Tenant Name

1

Log into the Microsoft 365 Tenant

Sign in to the Office 365 tenant you're configuring the connector for.

2

Navigate to SharePoint

Open SharePoint from the app launcher or go directly to SharePoint.

3

Extract Tenant Name from URL

Look at the browser URL bar. Your tenant name is the part before .sharepoint.com

https://contoso.sharepoint.com/...

In this example, the tenant name is: contoso

4

Update Connector Configuration

Enter only the technical tenant name (no extensions) in the Tenant Name field of your Cloudiway connector.

Important

The tenant name is NOT the same as your primary domain name. Even if your email is user@company.com, your tenant name might be something different like "company123". Always verify by checking the SharePoint URL.

Quick Reference

SharePoint URL Tenant Name to Enter
https://contoso.sharepoint.com contoso
https://fabrikam-corp.sharepoint.com fabrikam-corp
https://m365x123456.sharepoint.com m365x123456

Screenshots

Correctly Configured Connector
Correctly Configured Connector

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