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 emailsFiles.Read.All- OneDrive/SharePointChannelMessage.Read.All- Teams messagesCalendars.Read- Calendar events
Synced Content
| Service | Content Types | Indexed Fields |
|---|---|---|
| Teams | Messages, Channels | Content, Replies, Files |
| Outlook | Emails, Attachments | Subject, Body, Metadata |
| OneDrive | Files, Folders | Name, Content |
| SharePoint | Sites, Lists, Docs | Title, 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
