Microsoft/Office 365 servers have been extended to support authorization via the industry-standard OAuth 2.0 protocol. Using OAUTH protocol, user can do authentication by Microsoft Web OAuth instead of inputting user and password directly in application. This way is more secure, but a little bit complex.
Create your application in Azure Portal
To use Microsoft/Office365 in Alert, you must create an application in https://portal.azure.com.
- Sign in to the Azure portal using either a work account or a personal Microsoft account.
- If your account gives you access to more than one tenant, select your account in the top right corner, and set your portal session to the Azure AD tenant that you want.
-
In the left-hand navigation pane, select the Azure Active Directory service, and then select App registrations > New registration.
- Enter a application name (ex: "Alert") and select tenant corresponding to your requirement:
EWS API permission
Now we need to add permission to the application:
Click API Permission -> Add a permission:
Select APIs in my organization uses -> Office 365 Exchange Online -> Delegated Permission -> Check EWS.AccessAsUser.All :
Here is permissions list:
Client Id and client secrets
Now we need to create a client secret for the application, click Certificates and secrets -> client secrets and add a new client secret.
Enter a client secret description and a expiration time:
![]() |
After client secret is created, store the client secret value to somewhere, Please store client secret value by yourself, because it is hidden when you view it at next time. | ![]() |
Client id and tenant
Now you can click Overview to find your client id and tenant id.
If your application is single tenant, use the tenant value in tokenUri and authUri instead of "common". If your application is multitenant, use "common" as tenant.
Above client_id and secret support both "Office365" and "Live (hotmail, outlook personal account)".
Configuration in Alert
Now in Alert, you must specify you email address and password associated (1) (an application password can be used in case of Multi Factor Authentication on your account), select "Office 365" in Exchange version (2) and click on "..." (3) to configure specific parameters for the connection :
In the new window, enter parameters which have been created earlier:
Now the configuration of Exchange Driver is finish, and you can send/receive emails.