RevokeListAccess
Revokes access to a Slack List from the specified users or channels. Exactly one of UserIds or ChannelIds must be provided.
Stored Procedure Specific Information
RevokeListAccess revokes access on a Slack List from a user or a channel. ListId is required. Exactly one of UserIds or ChannelIds must be provided. The required scope to execute this stored procedure is lists:write. The Slack API accepts only a single user Id (or a single channel Id) per call — to revoke access from multiple entities, run the procedure once per entity.
The Success output reports false when the Slack API returns failed_to_update_user_ids or failed_to_update_channel_ids in the response (for example, when the caller lacks permission to modify access for the specified entity).
For example:
EXECUTE RevokeListAccess ListId = 'F099C0D2RBM', UserIds = 'U064PUU751Q' EXECUTE RevokeListAccess ListId = 'F099C0D2RBM', ChannelIds = 'C01KWCPJJ68'
Input
| Name | Type | Description |
| ListId | String | The Id of the Slack List to revoke access from. |
| UserIds | String | A comma-separated list of user Ids to revoke access from. Mutually exclusive with ChannelIds. |
| ChannelIds | String | A comma-separated list of channel Ids to revoke access from. Mutually exclusive with UserIds. |
Result Set Columns
| Name | Type | Description |
| Success | String | The result of the procedure. |