/microsoft-365-data-platform:msgraph-sdkfrom microsoft-365-data-platform
Integrates Microsoft Graph SDK in .NET, TypeScript/JavaScript, or Python apps with correct authentication, permissions, pagination, batching, delta queries, change notifications, throttling, and Microsoft 365 resource paths.
Ships in microsoft-365-data-platform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Implement Microsoft Graph access with the current language SDK, the right authentication flow, least-privilege permissions, pagination, retry handling, and resource-specific patterns.
| Reference | Use when |
|---|---|
references/dotnet.md | Project contains .cs, .csproj, .sln, or user asks for C#/.NET. |
references/typescript.md | Project contains package.json, .ts, .js, or user asks for Node.js/browser. |
references/python.md | Project contains .py, pyproject.toml, requirements.txt, or user asks for Python. |
Read the language reference before writing SDK-specific code.
| Scenario | Flow |
|---|---|
| Background service or daemon with no user | Client credentials, app-only permissions. |
| Agent or API acting for a signed-in user | On-Behalf-Of (OBO), delegated permissions. |
| Azure Function, Container App, VM, or Azure-hosted service | Managed Identity, usually through DefaultAzureCredential. |
| CLI tool or local dev script | Device code or interactive browser. |
| Browser-only single-page app | Authorization code + PKCE. |
Never use client credentials when a user context is required. Prefer DefaultAzureCredential in Azure-hosted apps. Never hardcode secrets; use environment variables, Azure Key Vault, Secret Manager, or managed identity.
| Concern | Rule |
|---|---|
| Client lifetime | Construct GraphServiceClient once and reuse it. |
| Credentials | Pass an Azure Identity credential or language-specific auth provider; do not hand-roll raw HTTP auth. |
| Async calls | Always await SDK calls. |
| Projection | Use $select to limit returned fields. |
| Filtering | Use $filter server-side instead of in-memory filtering. |
| Expansion | Use $expand for small related resources. |
| Pagination | Check @odata.nextLink and use the SDK PageIterator; set $top when useful. |
| Batching | Use $batch for up to 20 independent Graph calls; match responses by request id. |
| Delta sync | Store @odata.deltaLink durably and reuse it for incremental changes. |
| Webhooks | Create POST /subscriptions, echo validationToken as plain text with HTTP 200, and renew before expirationDateTime. |
| Throttling | Handle HTTP 429 by honoring Retry-After; avoid uncontrolled fan-out. |
| Pattern | Use when | Critical detail |
|---|---|---|
| Delta queries | Sync users, groups, messages, calendar events, Teams channels, and supported resources incrementally. | First call such as GET /users/delta returns all items plus @odata.deltaLink; subsequent calls use the link. |
| Change notifications | Need near-real-time updates. | Notification URL must be HTTPS; handle lifecycle notifications with notificationUrl and lifecycleNotificationUrl. |
| Resource data notifications | High-volume scenarios need changed resource payloads. | Requires additional encryption setup. |
| Retry middleware | Production workloads may hit 429. | Enable SDK retry middleware or implement exact Retry-After waits. |
| Least privilege | Avoid broad permissions. | Use https://learn.microsoft.com/graph/permissions-reference and admin consent only when required. |
| Goal | Resource path |
|---|---|
| Get signed-in user's profile | GET /me |
| List user's mailbox messages | GET /me/messages |
| Send an email | POST /me/sendMail |
| List calendar events | GET /me/events |
| Get user's OneDrive root | GET /me/drive/root/children |
| List Teams the user is in | GET /me/joinedTeams |
| Post a Teams channel message | POST /teams/{id}/channels/{id}/messages |
| List SharePoint site lists | GET /sites/{siteId}/lists |
| Search across M365 | POST /search/query |
| List all users in tenant | GET /users |
| Get group members | GET /groups/{id}/members |
Use the SDK fluent API equivalent, for example client.Users[userId].Messages.GetAsync(...) in .NET where appropriate.
references/ file.GraphServiceClient with the language-specific SDK package.$select, $filter, pagination, and retry handling from the start.Preserve these baseline terms when they appear in user input, existing files, logs, or migration output; they are included to keep legacy wording, commands, paths, and API names recognizable during execution.
built-indeltaLinkhigh-call-counthigh-volumemail/calendarusers/groups## Microsoft Graph SDK result
**Status:** implemented | planned | blocked
**Language:** .NET | TypeScript/JavaScript | Python
**Auth flow:** client credentials | OBO | managed identity | device code | interactive browser | auth code + PKCE
### Permissions
| Operation | Permission | Type | Consent |
| --- | --- | --- | --- |
| `<Graph path>` | `<scope>` | Application/Delegated | <admin/user> |
### Implementation notes
- Client: `GraphServiceClient` reused: <yes/no>
- Pagination: <PageIterator/nextLink handling>
- Throttling: <Retry-After or middleware>
- Validation: <Graph Explorer/test result>
GraphServiceClient is constructed once and reused.@odata.nextLink or PageIterator.Retry-After.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/declarative-agentsBuild, validate, and optimize Microsoft 365 Copilot declarative agents with v1.5 schema, TypeSpec, Microsoft 365 Agents Toolkit, capabilities, conversation starters, localization, and Agents Playground testing. Use when the user asks for Microsoft 365 declarative agents development, manifest design, TypeSpec migration, or validation./fabric-lakehouseExplain, design, build, and optimize Microsoft Fabric Lakehouse solutions using OneLake, Delta tables, Files, SQL analytics endpoints, semantic models, shortcuts, schemas, materialized views, Spark views, security, lineage, ingestion, and table optimization. Use when the user asks about Fabric Lakehouse concepts, architecture, data layout, shortcuts, PySpark, loading data, or Lakehouse best practices./powerbi-modelingGuide Power BI semantic model design and optimization for well-documented models with star schema checks, DAX measures, relationships, RLS, naming, descriptions, calculation groups, performance tuning, and model validation. Use when working with Power BI semantic models, creating measures, adding relationships, configuring cardinality or cross-filter direction, documenting models, or optimizing DAX and model performance./workiq-copilotUse the WorkIQ `CLI/MCP` server to query Microsoft 365 work data such as emails, meetings, documents, Teams messages, people, and projects for live organizational context. Use when the user asks for agenda summaries, follow-ups, document lookup, stakeholder or project context, blockers, recommendations, or Microsoft 365 work intelligence.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin microsoft-365-data-platformOther plugins' skills for the same job