user_connection_status_requested event
Slack requests the connection status of a user with your app
Facts
Usage info
This example includes both the event wrapper and the event structure for the user_connection_status_requested event.
{
"token": "XXYYZZ",
"team_id": "T123ABC456",
"api_app_id": "A123ABC456",
"event": {
"type": "user_connection_status_requested",
"user": "U123ABC456",
"event_ts": "1764264284.841251"
},
"type": "event_callback",
"authorizations": [
{
"enterprise_id": null,
"team_id": "T123ABC456",
"user_id": "U987ZYX654",
"is_bot": true,
"is_enterprise_install": false
}
],
"event_id": "Ev123ABC456",
"event_time": 1764264284,
"is_ext_shared_channel": false
}
The user_connection_status_requested event is sent by Slack when it has no record of whether a user is connected to your app and cannot decide whether to offer them a Connect button. Acknowledge the event as usual, then call either the apps.user.connection.update or apps.user.connection.bulkUpdate API method to report the user's connection status. Acknowledging the event isn't enough: until you report a status, Slack shows no Connect button for that user. Slack asks at most once an hour for each user, so a missed answer can leave the user without a button for up to an hour. Apps using standardized app authentication must subscribe to this event.
Unlike the user_connection event, this isn't sent because the user clicked something, so it carries no subtype and no trigger_id.
| Field | Description |
|---|---|
type | The type of event being sent. For this event, the value is always user_connection_status_requested. |
user | The user ID of the user whose connection status Slack is requesting. |
event_ts | When the event was sent. |