# List Organization Memberships — Calendly

> List the members of a Calendly organization via GET /organization_memberships, returning each membership's user URI, role, and email. Use this as the companion lookup action for user and organization URIs consumed by other tools. Supports…

- Key: `calendly_v2-list-organization-members`
- Type: Action (Read-only)
- Version: 0.0.2
- App: Calendly (`calendly_v2`) — https://pipedream.com/apps/calendly-v2.md
- This page (HTML): https://pipedream.com/apps/calendly-v2/actions/list-organization-members
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/calendly_v2/actions/list-organization-members/list-organization-members.mjs

## Description

List the members of a Calendly organization via `GET /organization_memberships`, returning each membership's user URI, role, and email. Use this as the companion lookup action for user and organization URIs consumed by other tools. Supports optional `role` and `email` filters plus pagination. Example: called with no props, returns the authenticated user's memberships such as `{ user: { name: "Jane Doe", uri: "https://api.calendly.com/users/AAAAAAAAAAAAAAAA" }, organization: "https://api.calendly.com/organizations/BBBBBBBBBBBBBBBB", role: "owner" }` — pass those URIs as the `user`/`organization` props in other actions. [See the documentation](https://developer.calendly.com/api-docs/eaed2e61a6bc3-list-organization-memberships).

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `organization` | `string` | No | Organization URI (e.g. https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA). Run List Organization Memberships to find valid organization URIs. |
| `email` | `string` | No | Filter memberships by member email address, e.g. jane@acme.com. |
| `role` | `string` | No | Filter memberships by role. One of: owner, admin, user. |
| `paginate` | `boolean` | No | Whether to paginate or not |
| `maxResults` | `integer` | No | Maximum number of results to return (min 1, max 1000). |

## Run it

**MCP**

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

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

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "calendly_v2-list-organization-members",
  arguments: {
    organization: "Organization URI",
    email: "Email",
  },
})
```

**TypeScript**

```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: "calendly_v2-list-organization-members",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    calendly_v2: { authProvisionId: "apn_xxxxxxx" },
    organization: "Organization URI",
    email: "Email",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "calendly_v2-list-organization-members",
    "configured_props": {
      "calendly_v2": { "authProvisionId": "apn_xxxxxxx" },
      "organization": "Organization URI",
      "email": "Email"
    }
  }'
```

---

- App: https://pipedream.com/apps/calendly-v2.md · All apps: https://pipedream.com/apps
