Dear AbbasUni,
Good day ,
Thanks for posting in Microsoft Community.
I understand that you have an concern on sync issue after migrations from Gsuite to O365. Based on the error mentioned message would you please have a look on the below possible solutions ?
Gsuite admin > Security > API Permissions and then try to add the Service Account as a trusted app > And then try it agian.
Use the Service Account email ID as the endpoint
Add the following scopes in Google Admin > Security > API Controls > Domain-wide Delegation
Additionally : Please make sure the token is valid, and has the necessary permissions/scopes as detailed here: Perform a Google Workspace (formerly G Suite) migration to Microsoft 365 or Office 365 and check if you have done this point "Grant access to the service account for your Google tenant"
NOTE : For your security and privacy , kindly don't mention any email address / password or other confidential information.
We look forward to your response. Thanks for your cooperation.
Sincerely,
Amul | Microsoft Community Moderator
***Note: In the event that you're unable to reply to this thread, please ensure that your Email address is verified in the Community Website by clicking on Your Account Name > "My Profile" > "Edit Profile" > Add your Email Address > tick "Receive email notifications" checkbox > click on "Save".***