Support Center

Login  Sign up

Exchange Online API Integration for Microsoft 365

Why do I need Exchange Online API Authentication?

The Exchange Online API is used in place of the Microsoft Graph API for actions not yet exposed by M365 such as:


  • Converting a mailbox to shared
  • Giving a user access to another's OneDrive 
  • Retrieving and removing email alias's
  • Removing delegate permissions from a user


  • DLP Policy audit
  • Self-service password reset
  • Password Reset Notification
  • teams default external/guest access
  • Default Sharepoint/Onedrive settings
  • Azure MFA per-user

The Exchange Online API is authenticated by a Global Admin and fully supports MFA.  A secure token is then generated by the endpoint to provide a permanent safe integration.


Running the script

  • The script must be run in a Powershell window as Administrator privilege.
  • The script will verify if PnP.Powershell is installed, and if not, will prompt for installation.  This is required in order to perform the authentication.

Troubleshooting Tips

Powershell Execution Error
Depending on your Powershell security configuration, you may receive an error regarding the file not being digitally signed.


  •     Run "Get-ExecutionPolicy -List"
  •     If CurrentUser's ExecutionPolicy is set to RemoteSigned, temporarily unrestrict this Powershell session by             running the following
  •     "Set-ExecutionPolicy -ExecutionPolicy Unrestricted"
  •     In the same Powershell window, you may now execute the downloaded script.

Error when retrieving Exchange Online Tokens "Something is up on our end"

When submitting the Exchange Online Tokens, Augmentt is utilizing functions of the Microsoft Azure Management services, which does the token retrieval for your tenant.  As such, policies blocking this service will cause this operation to fail.


  • Update any conditional access policies for your tenant which are restricting access to, or blocking access, to Exclude the "Microsoft Azure Management from the "Cloud Apps" category.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.