Error in Mailbox Migration from Gsuite to Office 365

Amit Badgujar 46 Reputation points
2021-03-30T10:19:51.43+00:00

Getting below error while migrating mailbox from Gsuite to office 365;

Error: GooglePermanentWebException/WebException: Error: The API call to Google ended in the error: uri=https://www.googleapis.com/calendar/v3/users/me/calendarList?maxResults=250 response={ "error": { "errors": [ { "domain": "calendar", "reason": "notACalendarUser", "message": "The user must be signed up for Google Calendar." } ], "code": 403, "message": "The user must be signed up for Google Calendar." } } . --> The remote server returned an error: ‎(403)‎ Forbidden.

I have given the below scopes;

https://mail.google.com/
https://www.googleapis.com/auth/calendar
https://www.google.com/m8/feeds/
https://www.googleapis.com/auth/gmail.settings.sharing

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,578 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,669 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,963 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Joyce Shen - MSFT 16,671 Reputation points
    2021-03-31T02:31:45.23+00:00

    Hi @Amit Badgujar

    According to the error information you provided above, the issue is caused by source Google Apps account is disabled or the account has a problem with Google authentication.

    You may try the solution below to resolve this issue:

    Please check following issues:

    1. User doesn’t exist
    2. User is suspended
    3. Password has expired

    Enable the source Google Apps account

    Then restart the migration.

    Refer to this link to get more information: Error: Cannot connect to Calendar API: Google.Apis.Requests.RequestError The user must be signed up for Google Calendar. 403 Errors.

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.


    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.
    0 comments No comments

  2. Robert 61 Reputation points
    2022-09-27T15:33:41.057+00:00

    Hi @Amit Badgujar ,

    I'm running into the same problem (see https://learn.microsoft.com/en-us/answers/questions/1025313/34fatal-error-googlepermanentwebexception-has-occu.html)
    However, I can't find any error details on the GooglePermanentWebException error. How did you find the details (the full message) of this error?

    Thanks for your help!
    Robert

    1 person found this answer helpful.
    0 comments No comments

  3. DanielS 5 Reputation points
    2023-03-02T09:50:38.7033333+00:00

    Hello

    We have same problem, solved with 2 steps in this link:

    OAuth Scopes

    At the wizard on O365 TENAT i have choose Automated - through the New Exchange admin center, but like we now, that don't do it everything.

    Also i have do 2 steps manual on the GSuite or Google Workspace Admin page site:

    • Enable API usage in your project
    • Grant access to the service account for your Google tenant

    Hope it will helps to someone else.

    1 person found this answer helpful.
    0 comments No comments

  4. Saqib Khan 5 Reputation points
    2023-04-09T12:00:38.56+00:00

    I encountered the same issue during the migration of Google to M365. Even all the prerequisites appear met, but when I looked at the parameters found two problems.

    1. Under Domain wide delegation section there were only four URLs authorized.
    2. Only Gmail API was enabled while we need Calander and Contacts enabled as well.

    Here's the steps to fix that problem:

    • Open the Domain Wide Delegation page and add the below URLs

    https://www.googleapis.com/auth/gmail.settings.sharing https://www.google.com/m8/feeds https://www.googleapis.com/auth/contacts.readonly https://www.googleapis.com/auth/calendar.readonly https://www.googleapis.com/auth/admin.directory.group.readonly https://www.googleapis.com/auth/admin.directory.user.readonly https://sites.google.com/feeds/ https://www.googleapis.com/auth/gmail.settings.basic

    1 person found this answer helpful.
    0 comments No comments

  5. Mr K Atkins 0 Reputation points
    2024-07-02T12:34:13.99+00:00

    You need to ensure the calendar API is enabled.

    0 comments No comments

Your answer

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