Cerb + Office365
Introduction
In this guide we’ll walk through the process of linking Cerb to Office365. You can use the same process with any Azure API from Cerb bots to automate whatever you need.
Configure an Azure app
Create a new app
-
Log in to: https://portal.azure.com/
-
Navigate to Azure Active Directory in the top search box.
-
Select App registrations in the left sidebar.
-
Click the + New registration button at the top.
-
Enter:
Name: Cerb
Supported account types: Accounts in this organizational directory only Redirect URI Platform: Web Redirect URI: https://YOUR-CERB-HOST/oauth/callback
-
Click the blue Register button at the bottom.
Create client secret
-
In the new app registration, navigate to Certificates & secrets.
-
Click the New client secret button in the Client secrets section near the middle of the page.
Description Cerb Expires Never -
Click the blue Add button.
-
Copy the Value (not the Secret ID).
Configure Cerb
Create the connected service
-
Navigate to Search » Connected Services.
-
Click (+) button in the right of the gray bar above the worklist.
-
In the Build tab, enter:
Name: Office365 URI: o365 Type: OAuth2 Provider Grant Type: Authorization Code Client ID: (from above) Client Secret: (from above) Authorization URL: https://login.microsoftonline.com/{DIRECTORY-ID}/oauth2/v2.0/authorize
Access Token URL: https://login.microsoftonline.com/{DIRECTORY-ID}/oauth2/v2.0/token
Resource Owner URL: (blank) Scope: email openid offline_access https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/SMTP.Send
Approval Prompt: (blank) You can find the
{DIRECTORY-ID}
in the Azure portal for your app registration as Directory (tenant) ID. -
Paste your Client ID and Client Secret from the credentials you copied earlier.
-
Click the Save Changes button.
Create the connected account
-
Navigate to Search » Connected Accounts.
-
Click (+) button in the right of the gray bar above the worklist.
-
Select Office365.
-
Enter:
Name: Office365 (you@example.com)
-
Click the blue Link to Office365 button.
-
Log in with your Office365 account.
-
Click Accept.
-
Click the Save Changes button.