Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query.
The following steps describe how to connect to Exchange Online using an OAuth access token:
- Take advantage of the Google API Console to first obtain OAuth 2.0 credentials.
- the Google Authorization Server's access token next.
- Next, trade your authorisation code for access and refresh tokens.
- Once you receive your refresh and access tokens, sign in to Exchange Online using them.
- Finally, to control the mailbox, utilize the Exchange Online PowerShell cmdlets.
If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.