# Microsoft 365 Planner — Pipedream Connect

> A simple, visual way to organize teamwork.

- API slug: `microsoft_365_planner` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Productivity
- Website: https://tasks.office.com/
- Managed OAuth scopes: `email` · `offline_access` · `openid` · `profile` · `Group.ReadWrite.All` · `Files.ReadWrite` · `Files.Read.All` · `MailboxSettings.Read` · `Tasks.ReadWrite` · `User.Read` · `User.Read.All`
- This page (HTML): https://pipedream.com/apps/microsoft-365-planner
- Tools: 5 actions · 3 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: microsoft_365_planner`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "microsoft_365_planner",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Create Bucket:
const result = await mcp.callTool({
  name: "microsoft_365_planner-create-bucket",
  arguments: {
    groupId: "Group",
    planId: "Plan",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Microsoft 365 Planner endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://graph.microsoft.com/v1.0/me

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9ncmFwaC5taWNyb3NvZnQuY29tL3YxLjAvbWU?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "microsoft_365_planner-create-bucket",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    microsoft_365_planner: { authProvisionId: "apn_xxxxxxx" },
    groupId: "Group",
    planId: "Plan",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (5)

### `microsoft_365_planner-create-bucket` — Create Bucket (Write)

Create a new bucket in Microsoft 365 Planner. See the documentation

Full schema: https://pipedream.com/apps/microsoft-365-planner/actions/create-bucket.md

### `microsoft_365_planner-create-plan` — Create Plan (Write)

Create a new plan in Microsoft 365 Planner. See the documentation

Full schema: https://pipedream.com/apps/microsoft-365-planner/actions/create-plan.md

### `microsoft_365_planner-create-task` — Create Task (Write)

Create a new task in Microsoft 365 Planner. See the documentation

Full schema: https://pipedream.com/apps/microsoft-365-planner/actions/create-task.md

### `microsoft_365_planner-list-user-tasks` — List User Tasks (Read-only)

List all user tasks in Microsoft 365 Planner. See the documentation

Full schema: https://pipedream.com/apps/microsoft-365-planner/actions/list-user-tasks.md

### `microsoft_365_planner-update-task` — Update Task (Write)

Updates a task in Microsoft 365 Planner. See the documentation

Full schema: https://pipedream.com/apps/microsoft-365-planner/actions/update-task.md

## Triggers (3)

### `microsoft_365_planner-new-plan-created` — New Plan Created (Polling)

Emit new event when a new Plan is created in Microsoft 365 Planner

Full schema: https://pipedream.com/apps/microsoft-365-planner/triggers/new-plan-created.md

### `microsoft_365_planner-new-task-assigned-to-user` — New Task Assigned to User (Polling)

Emit new event when a Task is assigned to the authenticated user in Microsoft 365 Planner. See the documentation

Full schema: https://pipedream.com/apps/microsoft-365-planner/triggers/new-task-assigned-to-user.md

### `microsoft_365_planner-new-task-created` — New Task Created (Polling)

Emit new event when a new Task is created in Microsoft 365 Planner

Full schema: https://pipedream.com/apps/microsoft-365-planner/triggers/new-task-created.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
