Unauthorized Client or Scope in Request

Configure proper API scopes in your Google Workspace Connector.

Last updated: 2025-01-15 Troubleshooting

Error Messages

Error Variant 1

unauthorized_client: Unauthorized client or scope in request.

Error Variant 2

unauthorized_client: Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested.

Scope Authorization Issue

🔑
Service Account
Requesting access
⚠️
Missing Scopes
Not authorized
Google API
Rejected

Root Cause

Improper Service Account Configuration

The Google service account feeds have improper configuration settings. The required API scopes are either missing or incorrectly configured in the Google Admin Console domain-wide delegation settings.

What Are Scopes?

OAuth scopes define what data and operations the service account can access. Missing scopes means the migration tool cannot perform required operations like reading emails, calendars, or Drive files.

Solution

Configure Required API Scopes

1

Access Google Admin Console

Go to admin.google.com → Security → API Controls → Domain-wide Delegation.

2

Find Your Service Account

Locate your Cloudiway service account by its Client ID and click to edit its scope configuration.

3

Add Required Scopes

Add all scopes specified in the Google Workspace Connector Configuration guide, including Gmail, Calendar, and Drive scopes.

4

Retry Migration

Wait a few minutes for changes to propagate, then restart the migration process.

Complete Scope List

Refer to the Google Workspace Connector Configuration article for the complete list of required scopes. Missing even one scope can cause this error.

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