ms365

Access Microsoft 365 data via Graph API with Azure AD authentication.

Updated Jan 14, 2026
One-click install
npx skills add https://github.com/Mezzle/ai-skills --skill ms365
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ms365
Source: https://github.com/Mezzle/ai-skills/tree/main/ms365
Command: npx skills add https://github.com/Mezzle/ai-skills --skill ms365

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @azure/identity, @microsoft/microsoft-graph-client, isomorphic-fetch, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Access to Microsoft 365 data via Microsoft Graph API often requires complex setup of authentication, permissions, and API calls. This Skill provides a ready-to-use integration to fetch emails, user profiles, and perform searches, enabling automation and AI agents to work with M365 data without building from scratch.

Core Features & Use Cases

  • Read user profile information (display name, email, job title, department, etc.) from Microsoft Graph.
  • Read emails with filtering and searching capabilities using KQL and OData filters, including folder-specific access.
  • Retrieve mailbox metadata and content for automation tasks and AI agent workflows.

Quick Start

Install dependencies, configure Azure AD, and run the scripts to retrieve a user profile or emails.

Frequently Asked Questions about ms365

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I access Microsoft 365 emails via the Graph API?

You can access Microsoft 365 emails via the Graph API by using TypeScript scripts with KQL and OData filters. This integration handles Azure AD authentication and supports folder-specific email retrieval and searching.

What is needed to set up Azure AD authentication for Microsoft Graph data retrieval?

Setting up Azure AD authentication for Microsoft Graph requires configuring your Azure AD tenant and installing the @azure/identity dependency. Once configured, you can run scripts to programmatically read user profiles and mailbox data.

Can I filter and search mailbox data using KQL and OData with Microsoft Graph?

Yes, you can filter and search mailbox data using KQL and OData filters. The integration provides ready-to-use scripts that perform advanced queries across emails and retrieve mailbox metadata for automation workflows.

How do I retrieve user profile information like job title and department from Microsoft Graph?

To retrieve user profile information from Microsoft Graph, run the provided TypeScript scripts after configuring Azure AD. The scripts fetch display names, emails, job titles, and departments without building from scratch.

What's the best way to automate Microsoft 365 data retrieval for AI agents?

The best way to automate Microsoft 365 data retrieval for AI agents is using a ready-to-use Graph API integration. It implements Azure AD authentication and TypeScript scripts to fetch emails and profiles, bypassing complex manual setup.

Does this Microsoft Graph integration support reading emails from specific mailbox folders?

Yes, this Microsoft Graph integration supports reading emails from specific mailbox folders. It uses the @microsoft/microsoft-graph-client and isomorphic-fetch dependencies to perform folder-specific access and advanced email searching.