Microsoft 365 API Patterns
Installation
SKILL.md
Microsoft Graph API Patterns
Overview
Microsoft Graph is the unified REST API surface for all M365 services (users, mail, calendar, Teams, OneDrive, security). All M365 MCP tools ultimately make Graph calls. Understanding Graph's OData query syntax, pagination model, throttling behavior, and auth patterns is essential for building reliable M365 workflows.
Authentication
Token Scope for MSP Operations
The Softeria MS-365 MCP server (--org-mode) accepts a Bearer token per request via the Authorization header. The token must be obtained from Microsoft Entra using the common endpoint (multi-tenant) with the following scopes:
| Scope | Purpose |
|---|---|
https://graph.microsoft.com/.default |
All Graph permissions granted to app |
openid |
ID token for tenant ID extraction |
profile |
User profile claims |
offline_access |
Refresh token for session persistence |