Microsoft 365 Integration

Connect Teams, Outlook, OneDrive, and SharePoint to Metalogue

Microsoft 365 Integration

Connect your Microsoft 365 tenant to index Teams messages, Outlook emails, OneDrive files, and SharePoint sites.

Quick Start

const connector = await client.createConnector({
  connector_type: 'microsoft365',
  display_name: 'Company M365',
});

// OAuth flow required
const authUrl = await client.getOAuthUrl('microsoft365');

Authentication

OAuth 2.0 with Azure AD. Requires admin consent for organizational access.

Required Permissions

  • Mail.Read - Outlook emails
  • Files.Read.All - OneDrive/SharePoint
  • ChannelMessage.Read.All - Teams messages
  • Calendars.Read - Calendar events

Synced Content

ServiceContent TypesIndexed Fields
TeamsMessages, ChannelsContent, Replies, Files
OutlookEmails, AttachmentsSubject, Body, Metadata
OneDriveFiles, FoldersName, Content
SharePointSites, Lists, DocsTitle, Content, Metadata

Configuration

{
  "settings": {
    "services": ["teams", "outlook", "onedrive", "sharepoint"],
    "teams_channels": ["General", "Engineering"],
    "sharepoint_sites": ["intranet", "wiki"],
    "email_folders": ["Inbox", "Sent Items"]
  }
}

Graph API

Metalogue uses Microsoft Graph API with automatic pagination:

const results = await client.query({
  text: 'engineering standup notes',
  filters: {
    connector_type: 'microsoft365',
    document_type: 'teams_message'
  }
});

Rate Limits

  • Graph API: 10,000 requests/10 minutes
  • Automatic throttling and retry

Next Steps