slack.usergroups.sync ​
Sync Slack user groups (@subteams) for one connection into the DB (needs usergroups:read).
Sync Slack user groups (@subteams) into slack_usergroup (needs usergroups:read).
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-slack |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Organization that owns the Slack connection |
connection_uuid | uuid | Yes | — | Slack CloudConnection UUID |
workflow_run_id | string | No | — | Parent DAG run id (auto-injected by the engine when used as a DAG step) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | Organization echoed from input |
connection_uuid | uuid | No | — | Slack connection echoed from input |
team_id | string | No | — | Slack team id |
discovered | integer | No | — | Remote records discovered before persistence |
synced | integer | No | — | Valid records processed by persistence |
inserted | integer | No | — | Rows inserted during this sync |
updated | integer | No | — | Existing rows whose persisted fields changed |
unchanged | integer | No | — | Existing rows already matching the remote record |
deleted | integer | No | — | Remote records marked deleted or archived |
error_count | integer | No | — | Records skipped because they could not be persisted |
errors | list | No | — | Per-record persistence errors |
pagination | json | No | — | Pagination metadata for the fully enumerated Slack API read |
workflow_run_id | string | No | — | Parent DAG run id (auto-injected by the engine when used as a DAG step) |
failure_reason | string | No | — | Human-readable failure reason (engine-stamped) |
failure_type | string | No | — | Failure category (engine-stamped) |
failed_action | string | No | — | Action that failed (engine-stamped) |
failed_at_state | string | No | — | State where the workflow failed (engine-stamped) |
failed_step | string | No | — | DAG step that failed (engine-stamped) |
failed_layer | string | No | — | DAG layer that failed (engine-stamped) |
error | string | No | — | Error message (engine-stamped) |
error_type | string | No | — | Error class name (engine-stamped) |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "slack.usergroups.sync",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value"
}
}