Creating Microsoft Outlook (Office 365) OAuth App Registration
This guide explains how to create a Microsoft Azure App Registration to allow the website to send emails via Outlook / Office 365 using OAuth.
What This Is For
CourseCo uses Microsoft OAuth to send system emails from your Office 365 mailbox (e.g. training@yourdomain.ie) in a secure, Microsoft-approved way.
What You’ll Need
Access to Microsoft Entra Admin Center (Azure Portal)
Global Admin or Application Admin permissions
The email address you want CourseCo to send emails from eg training@yourcompanyname.com
Step 1: Create a New App Registration
Log in to the Microsoft Entra Admin Center
Go to Applications → App registrations
Click New registration
Enter the following:
Name: CourseCo Email Integration (or similar)
Supported account type:
Accounts in this organisational directory only (Single tenant)Redirect URI (Web): (edit with your courseco domain)
CODEhttps://yourdomain.courseco.co/admin/messaging/oauth_set(Use the exact URL provided by CourseCo)
Click Register
Step 2: Note the Application (Client) ID and Tenant ID
Once the app is created:
Copy and save:
Application (Client) ID
Directory (Tenant) ID
These will be added to CourseCo Oauth settings
Step 3: Create a Client Secret
In the app menu, go to Certificates & secrets
Click New client secret
Enter:
Description: CourseCo Email
Expiry: Choose your preferred duration (e.g. 12 or 24 months)
Click Add
Immediately copy the secret value
⚠️ This will only be shown once.
Step 4: Configure API Permissions
Go to API permissions
Click Add a permission
Select Microsoft Graph
Choose Application permissions
Add the following permissions:
Mail.Send
Click Add permissions
Click Grant admin consent for your organisation
Step 5: Log into CourseCo (admin)
Once logged in as admin
Open messaging
The small icons between the left menu and the main page, scan down to the last one ‘SMTP Oauth Setup’

Provider - Select Azure
Enter the Client ID, Client Secret, Tenant ID
Select Continue

Once you select ‘Continue’ you will be redirected to Microsoft and must enter the email and password of your email account
You’ve now connected the account, step 6 is the important last step.
Step 6: Grant CourseCo Access in the Admin Console
An administrator must approve CourseCo’s permission request to allow email sending.
Log in to the Microsoft Entra Admin Center as a Global Administrator.
Navigate to Identity → Applications → Enterprise applications.
Locate and select the CourseCo application.
Open the Permissions section.
Review the requested permissions and click Grant admin consent.
Confirm the action when prompted.
Result:
Permissions will show as Granted, and CourseCo will be authorised to send emails on behalf of your organisation.
Step 7: Send yourself an email using CourseCo quick messaging
Once Step 6 is completed, log into CourseCo and send yourself a test email.
User guide here for sending an adhoc message to anyone in your contacts
Support
If your IT team has questions during setup, they can contact CourseCo and we’ll assist directly.