ms-graph-search-sdk

Search Microsoft 365 files, emails, and messages via the Graph API.

2|Updated Oct 6, 2025
One-click install
npx skills add https://github.com/pauljsnider/ai-config-guide --skill ms-graph-search-sdk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ms-graph-search-sdk
Source: https://github.com/pauljsnider/ai-config-guide/tree/main/claude/skills/ms-graph-search-sdk
Command: npx skills add https://github.com/pauljsnider/ai-config-guide --skill ms-graph-search-sdk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables programmatic search of files, emails, and messages across Microsoft 365 services via Microsoft Graph, saving time and enabling automation.

Core Features & Use Cases

  • Graph-powered search across OneDrive, Teams, Outlook, and other Graph-enabled services, returning results with names, IDs, and metadata.
  • Support for query strings and basic filtering to locate specific items quickly.
  • Use Case: Imagine you need to locate a document in OneDrive and a related email in Outlook; this Skill can search across both services with a single query and present results.

Quick Start

Start by obtaining a Graph API access token (via Graph Explorer) and running a Python script that calls the Microsoft Graph endpoints to search for drive items or messages.

Frequently Asked Questions about ms-graph-search-sdk

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

FAQPage Schema
How do I search across Microsoft 365 files and emails using the Graph API in Python?

To search Microsoft 365 files and emails via the Graph API in Python, you construct query strings and use the requests library to call Graph endpoints, then parse the returned JSON results containing item names, IDs, and metadata.

What do I need to authenticate Microsoft Graph API search requests with Python?

Authenticating Microsoft Graph API search requests requires a user-provided access token obtained from Graph Explorer, which is passed via token-based authentication headers in your Python requests session.

Can I search OneDrive, Teams, and Outlook simultaneously with a single Graph API query?

Yes, you can search OneDrive, Teams, and Outlook simultaneously by applying a consistent search workflow that constructs and submits a single query to the Graph API, fetching and displaying aggregated results.

How do I retrieve and parse Outlook messages using the Microsoft Graph API and Python requests?

To retrieve and parse Outlook messages, use the Python requests library to call the Graph API messages endpoint with your access token, then parse the JSON response to extract message names, IDs, and metadata.

Does searching OneDrive files through the Graph API support basic filtering?

Yes, searching OneDrive files through the Graph API supports query strings and basic filtering to locate specific drive items quickly, returning results with names, IDs, and metadata.

What are the limitations of using Python requests for Microsoft Graph API search tasks?

Using Python requests for Microsoft Graph API search tasks requires manual token management and JSON parsing, and it is limited to the query and filtering capabilities exposed by the Graph API endpoints rather than advanced local processing.