Share via

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:

Anonymous
2021-03-25T05:27:26.313+00:00

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.

Microsoft 365 and Office | SharePoint Server | For business
Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

6 answers

Sort by: Most helpful
  1. Tushar Bhargava 31 Reputation points
    2021-11-13T20:30:06.343+00:00
    6 people found this answer helpful.

  2. 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.

    3 people found this answer helpful.

  3. 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.

    2 people found this answer helpful.

  4. Vasil Michev 126K Reputation points MVP Volunteer Moderator
    2021-03-25T07:39:40.223+00:00

    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

    2 people found this answer helpful.

  5. Emily Du-MSFT 51,986 Reputation points Microsoft External Staff
    2021-03-26T02:53:34.277+00:00

    @Anonymous

    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 method

    References 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.

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.