Go to Slack

subteam_members_changed event

The membership of an existing User Group has changed

Compatibility: RTM Events API

Expected scopes:

{
    "type": "subteam_members_changed",
    "subteam_id": "S0614TZR7",
    "team_id": "T060RNRCH",
    "date_previous_update": 1446670362,
    "date_update": 1492906952,
    "added_users": [
       "U060RNRCZ",
       "U060ULRC0",
       "U061309JM",
    ],
    "added_users_count": "3"
    "removed_users": [
       "U06129G2V",
    ],
    "removed_users_count": "1"
}

The subteam_members_changed event is sent to all connections for a workspace when users are added or removed from an existing User Group. Clients can use the timestamp information to detect if they are out of sync with the user list.

Unlike subteam_updated, this only shows the delta of added or removed members and does not include a snapshot of the User Group.

Events API compatibility

Subscribe to this event via the Events API.

Events of this type will be wrapped in metadata when sent via the Events API.