View as Markdown
Slack icon

Slack ACTION

Update Group Members

Update the list of users for a User Group. See the documentation
  • Action
  • Writes data
  • Destructive
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Slack account once, then configure and run Update Group Members from your backend or agent.

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: "slack_v2-update-group-members",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    slack_v2: { authProvisionId: "apn_xxxxxxx" },
    userGroup: "User Group",
    usersToAdd: ["Users to Add"],
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Update Group Members inputs
Property Type Description
userGroup User Group string
The encoded ID of the User Group (e.g. S1234567890). Use List User Group Options to find valid IDs.
Required
usersToAdd Users to Add string[]
One or more user IDs to add to the group (e.g. U1234567890). Use Find User by Email or List Users to find valid IDs.
Optional
usersToRemove Users to Remove string[]
One or more user IDs to remove from the group (e.g. U1234567890). Use Find User by Email or List Users to find valid IDs.
Optional
team Team string
The encoded team ID (e.g. T1234567890) where the user group exists. Required only if the connected token spans multiple teams (Enterprise Grid). Use List Teams to find valid IDs.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
slack_v2-update-group-members
Version
0.0.21
App
Slack
Authentication
OAuth
Read-only
No
Destructive
Yes
Open world
Yes