logo
search
Google Workspace Migration

Fix OAuth Unauthorized Errors in Google Workspace to Microsoft 365 Migration

Elise WilliamsElise Williams Oct 23, 2026 868 views

Question details

The user needs to resolve an OAuth unauthorized-client error that prevents the service account from retrieving access tokens during a migration.

Fix OAuth Unauthorized Errors in Google Workspace Migration
Product
Microsoft 365 / Google Workspace
Device & OS
not provided
Scenario
Migrating emails, calendars, and contacts from Google Workspace to Microsoft 365.
Observed behavior
The migration fails with an OAuth unauthorized-client error because the service account lacks required API scopes or domain-wide delegation.
Before you start

Ensure you have super administrator privileges in both your Google Workspace Admin console and Microsoft 365 Exchange admin center before attempting to configure service account scopes.

Solution 1

Enable Required APIs in Google Cloud Console

Activate the essential Google Workspace APIs in your migration project so the service account can access user data.

1
Access Google Cloud Console

Log in to the Google Cloud Console and select the project associated with your migration service account.

2
Navigate to API Library

Go to 'APIs & Services' > 'Library' using the left navigation menu.

3
Enable APIs

Search for and enable the 'Gmail API', 'Google Calendar API', and 'Google People API' to ensure all required endpoints are active.

Free Microsoft Office alternative

Looking for an Easier Alternative to Microsoft 365?

Avoid the complexities of server migrations, OAuth errors, and expensive licensing. WPS Office offers a powerful, seamless, and free alternative to Microsoft Office, letting your team focus on productivity rather than IT troubleshooting.

Fully compatible with Microsoft Word, Excel, and PowerPoint file formats.Free, lightweight, and easy to deploy without complex cloud migrations.Familiar user interface ensuring a zero learning curve for your team.Built-in robust PDF editing and real-time cloud collaboration tools.
microsoft office alternative - wps office

Frequently Asked Questions

Why do I get an 'unauthorized_client' error even after adding the scopes?

This typically occurs if the Client ID was entered incorrectly, if there is a typo in the scope URLs, or if the changes haven't propagated yet. It can take up to 24 hours for API control changes in Google Workspace to fully propagate.

What specific APIs must be enabled in Google Cloud Console for the migration?

You must explicitly enable the Gmail API, Google Calendar API, and Google People API (which handles Contacts) within your designated migration project in the Google Cloud Console.

Do I need to recreate the migration endpoint in Microsoft 365 after fixing scopes?

Yes. If a migration endpoint previously failed due to OAuth unauthorized errors, deleting and recreating the endpoint forces Microsoft 365 to fetch a fresh authorization token using your newly applied scopes.

Can I perform a Google Workspace to Microsoft 365 migration without domain-wide delegation?

No. Automated backend migrations to Microsoft 365 require a service account with domain-wide delegation so it can access all user mailboxes without prompting each individual user for login credentials.