Disconnect from Slack

Ask the Community

Allow users to disconnect their group from a Slack workspace


Overview #

This method will disconnect the Slack workspace from the Cord group. This means all users who were connected to Slack will also be disconnected.
Vanilla JavaScript:
window.CordSDK.user.disconnectSlackWorkspace({
   onDisconnect: (success) => console.log('User successfully disconnected: ', success)
});
window.CordSDK.user.disconnectSlackWorkspace({
   onDisconnect: (success) => console.log('User successfully disconnected: ', success)
});
Copy

What this function returns #

A promise that resolves to true if the operation succeeded or rejects if it failed.

Arguments this function takes #


options #

optional
DisconnectSlackWorkspaceOptions

This is an object with the following fields:

Show property details


Not finding the answer you need? Ask our Developer Community

Ask Cordy