slack.deleteCanvasAccess revokes Canvas access from one or more users or channels.
Example
automations/revoke-slack-canvas-access.automation.ts
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Revoke users’ or channels’ access to a Slack Canvas.
slack.deleteCanvasAccess revokes Canvas access from one or more users or channels.
import { automation, onDashboardRun } from "automate.ax"
import { slack } from "automate.ax/slack"
export default automation("Revoke canvas access", () => {
onDashboardRun({ title: "Revoke canvas access" })
slack.deleteCanvasAccess({
canvasId: "F01234567",
subject: { ids: ["U01234567"], type: "users" },
})
})
| Input | Type | Required | Description |
|---|---|---|---|
canvasId | string | Yes | Stable Slack Canvas ID. |
subject | { type: "channels" | "users"; ids: string[] } | Yes | One or more channels or users losing access. |
Second argument: { account } | string | IntegrationAccountReference<"slack"> | No | Slack binding. |