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:

Amit Badgujar 21 Reputation points
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.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,607 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,343 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,798 questions
0 comments No comments
{count} votes

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. Vasil Michev 95,096 Reputation points MVP
    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.

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

  5. Emily Du-MSFT 41,771 Reputation points Microsoft Vendor
    2021-03-26T02:53:34.277+00:00

    @Amit Badgujar

    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.