--- title: "FOIAXpress Collaboration Office 365 OAuth Configuration" slug: "foiaxpress-collab-office-365-oauth-configuration" updated: 2026-05-30T13:22:06Z published: 2026-05-30T13:22:06Z canonical: "guide.casepoint.com/foiaxpress-collab-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. # FOIAXpress Collaboration Office 365 OAuth Configuration # ## In This Manual This document describes the steps required to configure Collaboration to integrate with OAuth for sending email messages from a system account. The configuration process consists of three main phases: - **Register Application**: Register the application in the Azure Portal - **Create Client Secret**: Generate a client secret in the Azure Portal for OAuth authentication - **API Permissions**: Assign the required API permissions to allow email delivery ## Prerequisites The following prerequisites must be met before beginning the OAuth configuration: - OAuth configuration must be performed by a system administrator with sufficient permissions and familiarity with Azure and Office 365 - An Exchange mailbox must be created in Office 365 prior to configuration (for example, noreply@Casepointtech.com). This mailbox is used as the sender address for all system-generated email messages from Collaboration and is required to complete the setup ## Application Registration The first step in the OAuth configuration process is to register the application in Azure. Complete the following steps: - Log in to the Azure Portal (https://portal.azure.com) using the Exchange mailbox created for the Collaboration system account. - Navigate to App registrations and select New registration. The Register an application page is displayed. ![](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/foiaxpress_collab_office_365_oauth_configuration_26.1.1.0-image-3xupnkra.png?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A51Z&se=2026-11-24T12%3A32%3A51Z&sr=b&sp=r&sig=GmeisbHTf6WRUvEIeGg%2BnDcXWEdkib50WxG%2BCUIVUEY%3D) - Enter a name for the application in the **Name** field. - Under **Supported** **account** **types**, the default option is selected automatically. Modify this selection if required based on your organization’s configuration. - In the **Redirect** **URI** section, enter the following value: /connectors/SMTP.aspx, where represents your application’s administrative URL. ![](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/foiaxpress_collab_office_365_oauth_configuration_26.1.1.0-image-0xex9ovh.jpg?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A51Z&se=2026-11-24T12%3A32%3A51Z&sr=b&sp=r&sig=5CP2lNHedZyTPowsNZY9gcgimZwILPutQwsDxQlmLu4%3D) - Click **Register** to create the application. - After registration is complete, the **Application (client) ID** and **Directory** **(tenant) ID** are displayed. Copy and save both values for later use. - Access the **Mail Server Address** section in **System Settings** ![](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/foiaxpress_collab_office_365_oauth_configuration_26.1.1.0-image-ij9xp60q.jpg?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A51Z&se=2026-11-24T12%3A32%3A51Z&sr=b&sp=r&sig=MPynGT7LE3AZFRi5O%2BND9o738iZsw0PHqxGf%2BnAN%2Blg%3D) - In the **OAuth** **Client** **ID** field, enter the **Application** **(client) ID** obtained in step - In the **Tenant** **ID** field, enter the **Directory** **(tenant)** **ID** obtained in step - In the **Email Address** field, enter the email address of the system account used for this configuration (for example, noreply@ains.com ). - Click **Save** to apply the changes. # Client Secret Creation After registering the application, create a client secret by completing the following steps: ![](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/foiaxpress_collab_office_365_oauth_configuration_26.1.1.0-image-7lbs0x7q.png?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A51Z&se=2026-11-24T12%3A32%3A51Z&sr=b&sp=r&sig=Ob%2FifaNj57iJEbZztnAgVhvIZuD9PxU2Daa4mjITMiY%3D) - In the Azure Portal, open the registered application and navigate to **Certificates** **& secrets**. - Click **New** **client** **secret**. ![](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/foiaxpress_collab_office_365_oauth_configuration_26.1.1.0-image-k4iqpx11.png?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A51Z&se=2026-11-24T12%3A32%3A51Z&sr=b&sp=r&sig=wa2LscsMMzLQBX1Akf3jEkCtUK02vHOsKLH9qq05EOw%3D) - On the **Add** **a** **client** secret page, enter a description for the secret. This description is for administrative reference only. - Use the **Expires** field to select an expiration date based on your organization’s security requirements (up to a maximum of 24 months). > **NOTE**: *Record the expiration date. The client secret must be renewed before it expires to avoid service disruption.* - Click **Add** to generate the client secret. - Once generated, the client secret is displayed. ![](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/foiaxpress_collab_office_365_oauth_configuration_26.1.1.0-image-hld4bwdx.jpg?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A51Z&se=2026-11-24T12%3A32%3A51Z&sr=b&sp=r&sig=DKSoEfPpTM9jczpdMU4wLa1DBzCfCOzY9DENY%2FHFdLQ%3D) - Copy the **Value** field and store it securely. > **NOTE**: *This value cannot be retrieved again after you leave the page.* - Access Mail Server Configuration from General Settings. - Paste the copied value into the **Secret Key** field. Once the client secret has been generated in the **Azure Portal**, also record the **Expiration date** that you selected in the Expires field. This date must be entered in **Mail Server Configuration** (General Settings), so the application can track when the client secret will expire and surface it for renewal. - Open **Mail Server Configuration** (General Settings) in the application. - Locate the **Client Secret Expiry Date field**. This field is mandatory. - Use the date picker to enter the same expiration date that was selected for the client secret in the Azure Portal. - Click **Save** to apply the changes. NOTE: - The Client Secret Expiry Date does not change the secret's actual expiration in Azure. Record the same date the client secret was issued so the application can warn before authentication failures occur. - If the Client Secret Expiry Date is empty or set to a past date, an error message is shown, and you cannot save the configuration until a valid future date is entered. ![](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/foiaxpress_collab_office_365_oauth_configuration_26.1.1.0-image-ksieluop.jpg?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A51Z&se=2026-11-24T12%3A32%3A51Z&sr=b&sp=r&sig=Zk%2F6DkvjzlXjxg8oGFRtJ8CN0m0qYsfqGcl%2FafehSJA%3D) - In the Client Secret Expiry Date field, enter the expiration date of the client secret you created in Azure AD. This date must be a future date in MM/DD/YYYY format. > **NOTE**: *Please ensure the expiry date entered here matches the Client Secret expiry date in your Microsoft Azure AD configuration. When a valid future date is saved, the system automatically sends warning emails to admin-role users at 30, 15, and 7 days before expiry, and an urgent notification on the first day after the secret has expired.* - Click **Save** to apply the changes. # API Permissions Configuration The final step in enabling OAuth authentication is configuring the required API permissions: ![](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/foiaxpress_collab_office_365_oauth_configuration_26.1.1.0-image-ffbmxl8i.png?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A51Z&se=2026-11-24T12%3A32%3A51Z&sr=b&sp=r&sig=U%2FUTUD16NUeT7csZlbGR2fgbd%2Fi5sJFNqW1gKvOh2CQ%3D) - In the Azure Portal, open the registered application and select **API permissions**. - Click **Add a permission**. - On the **Request API permissions** page, select **Microsoft Graph**. ![](https://cdn.us.document360.io/7544b7d8-1a52-4300-961d-f950905779cb/Images/Documentation/foiaxpress_collab_office_365_oauth_configuration_26.1.1.0-image-4vqk7fzx.png?sv=2026-02-06&spr=https&st=2026-11-24T11%3A32%3A51Z&se=2026-11-24T12%3A32%3A51Z&sr=b&sp=r&sig=nfXrl31im9lv26Rud2iAC3hse7BdF%2BERmtyIbXr6rU8%3D) - Choose **Application permissions.** - In the **Select permissions** field, enter **mail**. - Expand **Mail permissions** and select **Mail.Send**. - Click **Add permissions** to apply the selection. - An administrator must grant consent for the requested permissions. Once approval is granted, the system account mailbox is authorized to send email messages using OAuth authentication. > [!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.* ## 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%3A51Z&se=2026-11-24T12%3A32%3A51Z&sr=b&sp=r&sig=L0G6KALmGL3nOYqnfq3%2B76RLhj2dk%2BA%2BIf%2FrY3h4m1s%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%3A51Z&se=2026-11-24T12%3A32%3A51Z&sr=b&sp=r&sig=HM6p5gWFBp9CNlJ52hK4BxyKHEmmpZOjuap7P3fd2I8%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/foiaxpress-collab-office-365-oauth-configuration#application-registration) 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%3A51Z&se=2026-11-24T12%3A32%3A51Z&sr=b&sp=r&sig=W%2FE18oZ3VZ1d2u%2FL851PoOV5UpcOZj7vcaxqpxqzp8k%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%3A51Z&se=2026-11-24T12%3A32%3A51Z&sr=b&sp=r&sig=OW9shphB6%2FE3oXy820V3nMYC9uuxmcHFNL8nF8h8Zww%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%3A51Z&se=2026-11-24T12%3A32%3A51Z&sr=b&sp=r&sig=N9F24ry3Vjaa%2F5SBnztQcfUN8tHiVZiIXuCzp6Soffw%3D)