Module m365copilot

Module m365copilot 

Source
Expand description

Microsoft 365 Copilot cloud provider

Fetches conversation history from Microsoft 365 Copilot using the Microsoft Graph API.

§Authentication

Requires an Azure AD/Entra ID access token with the AiEnterpriseInteraction.Read.All permission. This is typically obtained through:

  • Azure AD application registration with admin consent
  • MSAL (Microsoft Authentication Library) token acquisition

§API Documentation

§App Classes

Microsoft 365 Copilot interactions are categorized by app class:

  • IPM.SkypeTeams.Message.Copilot.BizChat - Microsoft 365 Copilot Chat (formerly Bing Chat Enterprise)
  • IPM.SkypeTeams.Message.Copilot.Teams - Copilot in Teams
  • IPM.SkypeTeams.Message.Copilot.Word - Copilot in Word
  • IPM.SkypeTeams.Message.Copilot.Excel - Copilot in Excel
  • IPM.SkypeTeams.Message.Copilot.PowerPoint - Copilot in PowerPoint
  • IPM.SkypeTeams.Message.Copilot.Outlook - Copilot in Outlook
  • IPM.SkypeTeams.Message.Copilot.Loop - Copilot in Loop

§Example Usage

use csm::providers::cloud::m365copilot::M365CopilotProvider;
use csm::providers::cloud::CloudProvider;

// Create provider with Azure AD access token
let mut provider = M365CopilotProvider::new(Some(access_token));
provider.set_user_id("user-uuid".to_string());

// List conversations
let options = FetchOptions::default();
let conversations = provider.list_conversations(&options)?;

Structs§

M365CopilotProvider
Microsoft 365 Copilot provider for fetching AI interaction history

Functions§

get_friendly_app_name
Get a friendly name for the M365 Copilot app class
parse_m365_copilot_export
Parse Microsoft 365 Copilot export data (JSON format from Graph API)