--- title: "eCASE Office 365 OAuth Configuration" slug: "ecase-office-365-oauth-configuration" updated: 2026-07-24T12:36:42Z published: 2026-07-25T07:30:16Z canonical: "guide.casepoint.com/ecase-office-365-oauth-configuration" --- > ## Documentation Index > Fetch the complete documentation index at: https://guide.casepoint.com/llms.txt > Use this file to discover all available pages before exploring further. # eCASE Office 365 OAuth Configuration # About Office 365 OAuth Configuration ### In This Manual This manual contains steps to configure eCASE to integrate with OAuth for sending emails from a system account. The steps to complete this configuration take place in three parts: - Register Application: Register your application through the Azure Portal. - Create Client Secret: Using the Azure Portal, create a Client Secret you will use for OAuth configuration. - API Permissions: Add appropriate API permissions to permit sending emails. ### Prerequisites The following are prerequisites for completing OAuth configuration: - OAuth configuration should be completed by a system administrator with the appropriate knowledge and access to complete all required steps. - Before beginning the configuration, you must create an Exchange mailbox in Office 365 (ex. noreply@Casepointtech.com). This email appears as the sender for all system messages from eCASE and is used to complete the configuration. ## Register Application The first step in OAuth configuration is to register your app. Follow the steps below to register the app in Azure: - Log in to portal.azure.com using the Exchange mailbox created as the eCASE system account. - Click **App Registrations > New Registration**. The *Register an application* screen appears: ![Graphical user interface, text, application Description automatically generated](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/ecase_office_365_oauth_configuration-image-a1k864fq.jpg?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A48Z&se=2026-11-24T12%3A32%3A48Z&sr=b&sp=r&sig=3KL%2Fqv1Zx4gtgXlL8k9okDCdWrYn0nc5dXvR008bxE8%3D) - Enter a **(A) Name** for the app in the field provided. - Under **(B) Supported account types**, the top option is selected by default. You may need to make a different selection depending on your organization’s needs. - Under **(C) Redirect URL**, enter “/connectors/SMTP.aspx” where is replaced with your application’s admin URL. - Click **Register** to register the app. - The app is registered. The screen displays the **(A) Application (client) ID** **and (B) Directory (tenant) ID.** Copy both to your clipboard or otherwise save for later reference: ![Graphical user interface, text, application Description automatically generated](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/ecase_office_365_oauth_configuration-image-huseal7a.jpg?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A48Z&se=2026-11-24T12%3A32%3A48Z&sr=b&sp=r&sig=oA5DdCCE4pZGkZ2MMvCYrqh7zeLxOrprvR3VB70Sac8%3D) - Access eCASE Administration (**eCASE > Settings > Connectors > eMail (SMTP)**). The configuration screen appears as shown below: ![](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/Client-secret-expiry-date(2).png?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A48Z&se=2026-11-24T12%3A32%3A48Z&sr=b&sp=r&sig=%2FDh9Hln%2F8DgqPhUedmdLGJqBki2OBzqX1ojtlf%2Bq%2FdA%3D) - In the **OAuth Credential** field, select **Client Secret Based**. - Copy the value obtained in the previous step into the **Public Key** (secret) field. - In the **Client Secret Expiry Date** field, enter the expiration date of the **Client Secret** you have recorded in Azure. Enter the date in MM/DD/YYYY format. The date must be a future date. - Under **(A) OAuth Client ID,** enter the **Application (client) ID** from step 7. - Under **(B) Tenant ID**, enter the **Directory (tenant) ID** from step 7. - In the *User Name* field, enter the email address being used as the system account for this configuration (ex. noreply@ains.com). - Click **Save** to save the changes. ## Create Client Secret Next, you’ll follow the steps below to create a new Client Secret: - Within the Azure Portal, access your application, then access the *Certificates & Secrets* screen. - Click **New Client Secret**: ![Graphical user interface, text, application, email Description automatically generated](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/ecase_office_365_oauth_configuration-image-11vkpphw.jpg?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A48Z&se=2026-11-24T12%3A32%3A48Z&sr=b&sp=r&sig=tkTBVy29Y4gC1KCZ8Z9ztavLJ%2FshJVm%2FuhDkIu5F8Dk%3D) - The *Add a client secret* screen appears. First enter a *Description* in the field provided. This is an internal description that is visible only to Admin users: ![Graphical user interface, text, application, email Description automatically generated](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/ecase_office_365_oauth_configuration-image-1k0m6oyl.jpg?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A48Z&se=2026-11-24T12%3A32%3A48Z&sr=b&sp=r&sig=Hb9Vw%2BCQlUxRqchL47lAcX%2BDNd0z7sC5YYDV%2BiMK6uI%3D) - Use the *Expires* field to determine an expiration date based on your organization’s preference (with a 24-month maximum). > **NOTE:** *Take a note of this expiration date, as this Client Secret will need to be renewed prior to the expiration for continuous operation.* - Click **Add** to generate the Client Secret. - The Client Secret is successfully generated, and the secret appears as shown in the example below: ![Graphical user interface, text, application Description automatically generated](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/ecase_office_365_oauth_configuration-image-oxzttnt0.jpg?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A48Z&se=2026-11-24T12%3A32%3A48Z&sr=b&sp=r&sig=a1ElC9O6zqcemoUD%2B0BrxwoK9yi8hLw%2FTyOIN%2Fh9L1Y%3D) > **NOTE:** *Save the “Value” as this cannot be retrieved. You will need this to complete the configuration.* - Copy the *Value* field to your clipboard. - Access eCASE Administration (**eCASE > Settings > Connectors > eMail (SMTP)**). - Copy the value obtained in step 7 into the Public Key (secret) field: ![Graphical user interface, text, application, email Description automatically generated](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/ecase_office_365_oauth_configuration-image-uxbt0qys.jpg?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A48Z&se=2026-11-24T12%3A32%3A48Z&sr=b&sp=r&sig=%2B5R1mTk%2B6%2FbgVxqcE21PEQOp0Y05myxTGHC8UHHTtLc%3D) - Click **Save** to save the changes. ## API Permissions The final step to enable OAuth is configuring API permissions: - Open the Azure Portal and access your application page, then click **API permissions**: ![Graphical user interface, text, application, email Description automatically generated](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/ecase_office_365_oauth_configuration-image-1jpxxpd4.jpg?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A48Z&se=2026-11-24T12%3A32%3A48Z&sr=b&sp=r&sig=DTqwrzCKqELD4EW1ECww2poE7P40WlC%2B2Q0dejCVx18%3D) - From the API Permissions screen click **Add a Permission**. - The *Request API Permissions* screen appears. Click **Microsoft Graph**: ![Graphical user interface, text, application, email Description automatically generated](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/ecase_office_365_oauth_configuration-image-khqsqw2n.jpg?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A48Z&se=2026-11-24T12%3A32%3A48Z&sr=b&sp=r&sig=WPdpBBiGXZd6v5SnhiDln%2BHcoNgTpqzkQ8z%2B3ZIG2iU%3D) - Next click **Application Permissions**. ![Graphical user interface, text, application, email Description automatically generated](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/ecase_office_365_oauth_configuration-image-wg91rvpm.jpg?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A48Z&se=2026-11-24T12%3A32%3A48Z&sr=b&sp=r&sig=sqGShVcP6dVrO%2Fkk6pRQAMTIHnRk0QA1t52y%2BqBvkuE%3D) - In the Select Permissions field, type “mail”. - Locate and expand the Mail permissions, then select **Mail**.**Send**: ![Graphical user interface, text, application, email Description automatically generated](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/ecase_office_365_oauth_configuration-image-5epkg1uu.jpg?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A48Z&se=2026-11-24T12%3A32%3A48Z&sr=b&sp=r&sig=t%2BkFm%2BCh077vgYyRZOuAiko7IZTdPsLAvLpelXzJUJo%3D) - Click **Add Permissions** to apply the selected permission. - The Administrator must grant these permissions. The Admin receives a notification to grant the requested permission and, once this permission is granted, the mailbox can send mail from the system account. > [!NOTE] > **NOTE**: *Assigning the Mail.Send application permission allows the app to send emails on behalf of user configured explicitly in the application settings. This requires admin consent and should be granted only when necessary for your application's functionality. Ensure you follow organizational policies for access and security.* ### Client Secret Expiry Notifications When a valid **Client Secret Expiry Date** is saved, the system automatically monitors the date using the **Track Client Secret Expiry** scheduled job request and sends email notifications to all administrator-role users at the following intervals. | Trigger Email Subject | Email Subject | Required Action | | --- | --- | --- | | 30 days before expiry | Action Required: Client Secret Expiring in 30 Days | Add the Client Secret in Azure Active Directory and update the Public Key (secret) and Client Secret Expiry Date in eCASE. | | 7 days before expiry | Action Required: Client Secret Expiring in 7 Days | Add the Client Secret in Azure Active Directory and update the Public Key (secret) and Client Secret Expiry Date in eCASE. | | 1 day before expiry | Action Required: Client Secret Expiring in 1 Day | Add the Client Secret in Azure Active Directory and update the Public Key (secret) and Client Secret Expiry Date in eCASE. | | First day after expiry | URGENT: Client Secret Has Expired — Immediate Action Required | Add the Client Secret immediately in Azure Active Directory and update the Public Key (secret) and Client Secret Expiry Date in eCASE to restore email service. | Notification emails are sent only on threshold days (30, 7, and 1 day before expiry, and the first day after expiry). No emails are sent on non-threshold days. If no expiry date is configured, the scheduler skips expiry notification processing entirely. After the expiry date has passed, the scheduler takes no further action for that expiry date. All notification emails are logged in the **Email Log**. To view them, navigate to **Settings**, select **System Configuration**, and then **Email Log**. To view the execution history of the scheduled job request, navigate to **Settings** and select **System Configuration**. Further, navigate to **Scheduled Jobs** and select **Track Client Secret Expiry**. ## Restrict Application Access to Specific Users or Groups (Optional) By default, granting the Mail.Send application permission allows the app to send emails on behalf of any user in the organization. To restrict access so that the application can only send emails on behalf of specific users or a group, you can configure an Application Access Policy using Exchange Online PowerShell. ### Prerequisites - Windows **PowerShell 5.1** or **PowerShell 7.4+** (recommended) - **Exchange Online PowerShell V3** module ### Install the Exchange Online Module 1. Open **PowerShell**. 2. Run the following command: ***Install-Module -Name ExchangeOnlineManagement -Force*** ### Create an Application Access Policy Follow the steps below to restrict Graph API application access for the Collaboration system account: 1. Open **PowerShell**. 2. Type ***Connect-ExchangeOnline*** and press **Enter**. ![](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/1(11).png?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A48Z&se=2026-11-24T12%3A32%3A48Z&sr=b&sp=r&sig=6TxBaM%2FR51tSDr6rsosdYk2IceOpW60f2y4BJMAT8Bw%3D) 3. Sign in using admin credentials when prompted. ![](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/2(8).png?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A48Z&se=2026-11-24T12%3A32%3A48Z&sr=b&sp=r&sig=Z2VV5KlpNQTSS5qPrfe0b%2F9PBCQMCaraH7x1y1zq8lk%3D) 4. Once connected, type ***New-ApplicationAccessPolicy*** and press Enter. 5. For **AccessRights**, type ***RestrictAccess*** and press **Enter**. 6. For **AppId[0]**, enter the ***Application (client) ID*** obtained during the [Application Registration](/resource-center/docs/ecase-office-365-oauth-configuration#register-application) step above and press **Enter**. 7. For **AppId[1]**, leave blank and press **Enter** (this is required only when restricting multiple applications). 8. For **PolicyScopeGroupId**, enter the user account or a Mail-Enabled Security Group. Refer to the section below to create a **Mail-Enabled Security Group** if needed. ![](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/3(8).png?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A48Z&se=2026-11-24T12%3A32%3A48Z&sr=b&sp=r&sig=0Tq%2FXA6xxhIRc2Df4xJry9lN0VjcC9P5Qfk2FH3DEXM%3D) > [!NOTE] > NOTE: *If you want to restrict application access for more than one user account, you must use a Mail-Enabled Security Group.* ### Create a Mail-Enabled Security Group To restrict application access for multiple users, create a Mail-Enabled Security Group in Exchange Online: 1. Log in to the **Exchange Admin Center (EAC).** 2. Navigate to **Recipients > Groups > Add a group**. 3. Select **Mail-enabled security** as the group type and click **Next**. 4. Enter a **Name** and **Description**, then click **Next**. 5. Assign owners, add members, and define the email address. 6. Review the details and click **Create group**. ### Test the Application Access Policy After creating the policy, verify that it is working correctly: 1. In PowerShell, type **Test-ApplicationAccessPolicy** and press Enter. 2. For **AppId**, enter the **Application (client) ID** used when creating the policy. 3. For **Identity**, enter the user account or group account to test. If the user or group has access, the test returns a result confirming access is granted. ![](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/4(8).png?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A48Z&se=2026-11-24T12%3A32%3A48Z&sr=b&sp=r&sig=IRfV4O99zraZmNaVQQ4h2pEt9wDYy7sAxe1PdIC%2B9Hg%3D) 1. If the user or group does not have access, the test returns a result indicating access is denied. ![](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/5(9).png?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A48Z&se=2026-11-24T12%3A32%3A48Z&sr=b&sp=r&sig=KA50W5UBXQaAPbXP59kePEzsopvREdYXXXnCbP2ZBno%3D)