> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Slack: Update Group Members

Update the list of users in a Slack usergroup via native OAuth integration. Replaces all current members with the specified user IDs. Ideal for: team rotation, on-call schedules, dynamic group management.

![Slack: Update Group Members logo](https://ai-icon.b3.fun/logo/slack)
Catalog action Integrations slack

Update the list of users in a Slack usergroup via native OAuth integration. Replaces all current members with the specified user IDs. Ideal for: team rotation, on-call schedules, dynamic group management.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `slack-update-group-members` |
| Category | Integrations |
| Connector | `slack` |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `slack`, `integration`, `write`, `team` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `usergroup` | `string` | Yes | Usergroup ID to update \(e.g., S0123456789\) |
| `users` | `string` | Yes | Comma-separated list of user IDs to set as the group's members \(replaces existing members\) |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | `boolean` | Yes | - |
| `data` | `object` | No | - |

## Examples

**Workflow node**

```json
{
  "type": "slack-update-group-members",
  "payload": {
    "usergroup": "example-usergroup",
    "users": "example-users"
  },
  "children": [],
  "connector": {
    "type": "slack",
    "id": "conn_slack"
  }
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/slack-update-group-members/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "usergroup": "example-usergroup",
    "users": "example-users"
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.