Make sure you've followed the instructions to add API permissions on Google side: https://learn.microsoft.com/en-us/exchange/mailbox-migration/perform-g-suite-migration#enable-api-usage-in-your-project
Migration from google g suite to office 365 - Error: MigrationPermanentException: The call to https://www.googleapis.com/oauth2/v4/token returned with status code Unauthorized:
Error: MigrationPermanentException -Unauthorized
I have Migration from google g suite to office 365 and when i make sync it issue
User status
Data migrated:
Migration rate:
Last successful sync date:
Error: MigrationPermanentException: The call to https://www.googleapis.com/oauth2/v4/token returned with status code Unauthorized: Unauthorized Error response: unauthorized_client Error description: Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested. --> The call to https://www.googleapis.com/oauth2/v4/token returned with status code Unauthorized: Unauthorized Error response: unauthorized_client Error description: Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested.
6 answers
Sort by: Oldest
-
-
Emily Du-MSFT 41,941 Reputation points Microsoft Vendor
2021-03-26T02:53:34.277+00:00 It seems that the service account configured in the Google Console doesn’t have enough permissions to perform a migration.
Please check whether service account is configured correctly and contain all necessary scopes.
References about how to troubleshoot the issue:
“Client Is Unauthorized To Retrieve Access Tokens Using This Method.” G Suite Migration Error
Error: Cannot connect to Calendar API: Unauthorized Client. Client is unauthorized to retrieve access tokens using this methodReferences about how to perform a Google Workspace (formerly G Suite) migration:
Perform a Google Workspace (formerly G Suite) migration
Migrate consumer Google Workspace (formerly G Suite) mailboxes to Microsoft 365 or Office 365
G Suite to Office 365 Migration: A Step-By-Step Guide from Our Pros
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. -
Jason Gaffney 16 Reputation points
2021-08-12T15:34:41.477+00:00 Have you found a solution for this? I have the same issue and have through the same documents multiple times.
-
Jimbo Jones 11 Reputation points
2021-11-02T01:13:07.597+00:00 I am getting the same error (not 100% resolved yet).
I did however get past the error you're getting. I'm doing a GWorkspace to M365 Migration using the gmail migration tool in Exchange online.
I can't upload the screenshot because the upload tool's not working but when you get to the step "Automate the configuration of your Google Workspace for migration", once it's finished doing it's 4 setup steps there's a link it gives you and a ClientId and a Scope you need to manually add into Google admin. Once I did that I stopped getting that error you're receiving when running the PS "Test-MigrationServerAvailability" command. -
Tushar Bhargava 31 Reputation points
2021-11-13T20:30:06.343+00:00 Two things to resolve the issue.
- Use the Service Account email ID as the endpoint
- Add the following scopes in Google Admin > Security > API Controls > Domain-wide Delegation
Works every time.