This article describes how to set up an OAUTH with email accounts, for example O365 with IMAP.

Please see KB0816072 for more detail on scopes and values for Office 365.


  1. You need to enable the email-oauth plugin in the instance ""
  2. Create new OAUTH profile with type is "Connect to a third party OAUTH Provider"
  3. Populate all the fields based on the OATUH endpoint's value
  4. Specify Scopes as required by your email provider (Office 365)
  5. If you are using O365, provide the below scopes as separate entires to get both the Access and refresh tokens ( , openid , offline_access) . 
  6. Test the same configuration from POST MAN to make sure the parameters are correct and you are getting the tokens
  7. If the test from POST MAN is successful, attach the OAUTH profile to the newly created email accounts
  8. Now you can see the UI action "Authorize Email Account Access" to get the tokens in the email account.
  9. As long there is a valid refresh token is available, the scheduled job named "Refresh email access token" will run every 3 minutes to check and get the new Access token.
  10. URL: https://<instance>

Article Information

Last Updated:2020-06-16 11:43:10