Office 365 guide under SAAS Integrations

Last updated: July 27, 2026

This guide provides detailed, step-by-step instructions to integrate Microsoft Office 365 (M365) with Matters.ai for secure, real-time, and historical scanning of OneDrive,SharePoint and Outlook data.

Integrating Office 365 involves 2 Steps

  1. Create and Configure the Microsoft Entra Application

  1. Connect Microsoft 365 to Matters.ai

Step 1 Create and Configure the Microsoft Entra Application

1.1 Register a New Application

  1. Go to https://entra.microsoft.com, search for App registrations in the top search bar.

  1. Click App registrations.

Screenshot 2025-08-14 at 2.07.43 PM.png
  1. Select New registration.

  1. Complete the registration form:

    • Name: Enter a descriptive name (e.g., Optiq O365 Integration).

    • Supported account types: Select

      Accounts in any organizational directory (Any Microsoft Entra ID tenant – Multitenant) and personal Microsoft accounts (e.g., Skype, Xbox).

  1. Click Register.

Screenshot 2025-08-14 at 2.45.30 PM.png

1.2 Add API Permissions — Microsoft Graph

  1. In the left menu, click API permissions.

Screenshot 2025-08-14 at 2.47.11 PM.png
  1. Select Add a permissionMicrosoft GraphApplication permissions.

Screenshot 2025-08-14 at 2.49.07 PM.png
  1. Add the following permissions:

PermissionTypePurpose

Files.Read.All

Application

Allows the app to read all files in all site collections without a signed in user.

Sites.Read.All

Application

Read SharePoint site files for scanning.

Directory.Read.All

Application

Access directory structures for file scanning.

AuditLog.Read.All

Application

Retrieve audit logs for alerts and monitoring.

AuditActivity.Read

Application

Read activity audit log from the audit store.

AuditLogsQuery-Entra.Read.All

Application

Allows the app to read and query audit logs from Entra (Azure AD) workload, without a signed-in user

AuditLogsQuery-Exchange.Read.All

Application

Allows the app to read and query audit logs from Exchange workload, without a signed-in user

AuditLogsQuery-OneDrive.Read.All

Application

Allows the app to read and query audit logs from OneDrive workload, without a signed-in user

AuditLogsQuery-SharePoint.Read.All

Application

Allows the app to read and query audit logs from SharePoint workload, without a signed-in user

AuditLogsQuery.Read.All

Application

Allows the app to read and query audit logs from all services.

Calendars.Read

Application

Allows the app to read events of all calendars without a signed-in user.

Calendars.ReadBasic.All

Application

Allows the app to read events of all calendars, except for properties such as body, attachments, and extensions, without a signed-in user.

CustomSecAttributeAuditLogs.Read.All

Application

Allows the app to read all audit logs for events that contain information about custom security attributes, without a signed-in user.

Group-Conversation.Read.All

Application

Allows the app to read conversations of the groups this app has access to without a signed-in user.

Group.Read.All

Application

Allows the app to read group properties and memberships, and read conversations for all groups, without a signed-in user.

Mail.Read

Application

Allows the app to read mail in all mailboxes without a signed-in user.

Mail.ReadBasic

Application

Allows the app to read basic mail properties in all mailboxes without a signed-in user. Includes all properties except body, previewBody, attachments and any extended properties.

Mail.ReadBasic.All

Application

Allows the app to read basic mail properties in all mailboxes without a signed-in user. Includes all properties except body, previewBody, attachments and any extended properties.

MailboxFolder.Read.All

Application

Allows the app to read all the users' mailbox folders, without signed-in user.

MailboxSettings.Read

Application

Allows the app to read user's mailbox settings without a signed-in user. Does not include permission to send mail.

User.Read

Application

To Read the Profile of the User

User.Read.All

Application

Allows the app to read user profiles without a signed in user.

SharePointTenantSettings.Read.All

Application

Allows us to read SharePoint and OneDrive tenant settings

Policy.Read.All

Application

Allows us to read your organisation's policies

Reports.Read.All

Application

Allows us to read Microsoft 365 service usage and activity reports across the organisation without requiring a signed-in user.

  1. Click Add permissions.

1.3 Add API Permissions - Office 365 Management APIs

  1. From API permissions, click Add a permission.

  1. Choose Office 365 Management APIsApplication permissions.

Screenshot 2025-08-14 at 3.17.05 PM.png
  1. Add below permissions:

PermissionTypePurpose

ActivityFeed.Read

Application

Access activity changes for real-time scanning.

ActivityFeed.ReadDlp

Application

Allows the application to read DLP policy events, including detected sensitive data, for your organization.

  1. Click Add permissions.


1.4 Grant Exchange Online Permissions

  • In the API permissions section, click Add a permission, then select APIs my organisation uses.

image.png

  • In the search bar, type Office 365 Exchange Online and select it from the results.

image (1).png

  • Choose Application permissions when prompted.

Screenshot 2025-12-17 at 5.44.02 PM.png

  • From the list of available permissions, select Exchange.ManageAsApp by checking the box. Confirm and save the selection to grant the permission.

Screenshot 2025-12-17 at 5.44.39 PM.png

Permission given

Permission

Type

Purpose

Exchange.ManageAsApp

Application

Manage Exchange As Application

1.5 Grant Admin Consent

  1. In API permissions, click Grant admin consent for <Your Organization>.

Screenshot 2025-12-17 at 5.48.42 PM.png
  1. Confirm the action.

  1. Ensure all permissions display Granted for <Your Organization>.

image (3).png

1.6 Create a Client Secret

  1. Go to Certificates & secrets.

  1. Under Client secrets, click New client secret.

Screenshot 2025-08-14 at 4.28.47 PM.png
  1. Enter:

    • Description: e.g., Optiq-Integration-Secret.

    • Expiry: Select per your organization’s policy.

  1. Click Add.

  1. Copy the Secret Value immediately and store it securely.

    Note: This value will not be visible again.

Screenshot 2025-08-14 at 4.32.54 PM.png

1.7 Record Application Identifiers

From the Overview page, copy and securely store:

  • Application (client) ID

  • Directory (tenant) ID

Screenshot 2025-08-14 at 4.35.33 PM.png

Step 2 Connect Microsoft 365 to Matters.ai

2.1 Open the Matters.ai Dashboard

  1. Log in to Matters Dashboard.

  1. You will land on the Dashboard Overview page.

2.2 Navigate to the Office 365 Connector

  1. Click Integrations in the navigation menu.

  1. Select the SAAS tab.

  1. Locate Microsoft Office 365.

  1. Click Connect.

Screenshot 2026-04-22 at 5.07.03 PM.png

2.3 Complete the Integration Form

In the O365 Integration modal:

  1. Integration Name: Provide a meaningful label (e.g., Prod-M365-Integration).

  1. Client ID: Paste the Application (client) ID

  1. Client Secret: Paste the Secret Value

  1. Tenant ID: Paste the Directory (tenant) ID

image.png

  1. Click Connect.

On success, an Integration Success confirmation message will appear.

image.png

Step 2.4: Configure SAAS Scan Settings

Once Office 365 Integration is Complete:

  • Navigate to SAAS.

  • All SharePoint sites, OneDrive users, and Outlook-related data will be automatically Listed in the SAAS Inventory.

image.png

Step 2.5: Manually Configure SAAS Scans

To Configure SAAS Scans click on Scan Settings and follow the steps below to configure OneDrive, SharePoint, and Outlook scanning.

image.png

Step 2.5.1: Manage OneDrive User Scanning

  1. Under the OneDrive section, you will see a list of users associated with your organization.

  1. Add or remove users as needed to specify whose OneDrive content should be scanned.

  1. This granular control allows you to focus scanning resources on relevant accounts only.

image.png

Step 2.5.2: Manage SharePoint Site Scanning

  1. Switch to the SharePoint tab.

  1. Here you can add or remove SharePoint sites to be included in the scan.

  1. After selecting the sites, click Save to apply your configuration.

image.png

Step 2.5.3: Manage Outlook Mail Scanning

  1. Switch to the Outlook tab.

  1. Here you can add or remove Outlook mails to be included in the scan.

  1. After selecting the Outlook mails click Save to apply your configuration.

image.png

You can choose between two scanning modes based on your organizational needs:

  • Real-Time Scan: Enables continuous monitoring of changes in user accounts, files, and sites. This mode ensures immediate detection of new data or modifications.

  • Backfilling Scan: Scans all existing data comprehensively to establish baseline coverage and identify sensitive entities across historical content.

Step 2.6: Confirm Configuration and Start Scan

  1. Upon saving, a success message “SaaS configuration saved successfully” will appear.

  1. Scans will automatically run based on your configured schedule and options.

  1. Sensitive entities discovered through scanning will be displayed in the dashboard for review.

Step 2.7: Review Scanned Entities

  1. To inspect the detailed list of sensitive entities found:

    • Click on the OneDrive Users, SharePoint sites or Outlook mails displayed on the Overview page to check for scanned data.

image (5).pngimage (4).png

  • When clicked on the File Explorer view you can see the folder-structure navigation of scanned files and detected sensitive data.

image (6).png

Required Permissions Summary

Microsoft Graph (Application):

Files.Read.All

Sites.Read.All

Directory.Read.All

AuditLog.Read.All

AuditActivity.Read

AuditLogsQuery-Entra.Read.All

AuditLogsQuery-Exchange.Read.All

AuditLogsQuery-OneDrive.Read.All

AuditLogsQuery-SharePoint.Read.All

AuditLogsQuery.Read.All

Calendars.Read

Calendars.ReadBasic.All

CustomSecAttributeAuditLogs.Read.All

Group-Conversation.Read.All

Group.Read.All

Mail.Read

Mail.ReadBasic

Mail.ReadBasic.All

MailboxFolder.Read.All

MailboxSettings.Read

User.Read

User.Read.All

Office 365 Management APIs (Application):

ActivityFeed.Read

ActivityFeed.ReadDlp

Following this guide ensures that your Microsoft 365 environment is successfully integrated with Matters.ai enabling both real-time and historical data scanning across OneDrive, SharePoint and Outlook.This supports proactive compliance, data governance, and security monitoring within your organization.