# Microsoft 365 People — Pipedream Connect

> Create, view, and edit contacts, contact lists, and groups in your Microsoft 365 account.

- API slug: `microsoft_365_people` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Productivity
- Website: https://support.microsoft.com/en-us/office/people-overview-outlook-web-app-5fe173cf-e620-4f62-9bf6-da5041f651bf
- Managed OAuth scopes: `Contacts.ReadWrite` · `User.Read` · `email` · `offline_access` · `openid` · `profile`
- This page (HTML): https://pipedream.com/apps/microsoft-365-people
- Tools: 4 actions · 1 trigger

## 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_people`

```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_people",
      },
    },
  },
)

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

const { tools } = await mcp.listTools()

// e.g. run Create Contact:
const result = await mcp.callTool({
  name: "microsoft_365_people-create-contact",
  arguments: {
    email: "Email",
    firstName: "First Name",
  },
})
```

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

## API proxy

For a Microsoft 365 People 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_people-create-contact",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    microsoft_365_people: { authProvisionId: "apn_xxxxxxx" },
    email: "Email",
    firstName: "First Name",
  },
})
```

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

## Actions (4)

### `microsoft_365_people-create-contact` — Create Contact (Write)

Create a new contact in Microsoft 365 People. See the documentation

Full schema: https://pipedream.com/apps/microsoft-365-people/actions/create-contact.md

### `microsoft_365_people-create-contact-folder` — Create Contact Folder (Write)

Create a new contact folder in Microsoft 365 People. See the documentation

Full schema: https://pipedream.com/apps/microsoft-365-people/actions/create-contact-folder.md

### `microsoft_365_people-list-folder-id-options` — List Folder ID Options (Read-only)

Retrieves available options for the Folder ID field.

Full schema: https://pipedream.com/apps/microsoft-365-people/actions/list-folder-id-options.md

### `microsoft_365_people-update-contact` — Update Contact (Write)

Updates an existing contact in Microsoft 365 People. See the documentation

Full schema: https://pipedream.com/apps/microsoft-365-people/actions/update-contact.md

## Triggers (1)

### `microsoft_365_people-new-contact-created` — New Contact Created (Instant) (Polling)

Emit new event when a new contact is created in a folder.

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

---

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