slack.setCanvasAccess grants read, write, or owner access to a Canvas. Owner access is available only for users, not channels.
Example
automations/share-slack-canvas.automation.ts
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Grant users or channels access to a Slack Canvas.
slack.setCanvasAccess grants read, write, or owner access to a Canvas. Owner access is available only for users, not channels.
import { automation, onDashboardRun } from "automate.ax"
import { slack } from "automate.ax/slack"
export default automation("Share launch canvas", () => {
onDashboardRun({ title: "Share launch canvas" })
slack.setCanvasAccess({
accessLevel: "write",
canvasId: "F01234567",
subject: { ids: ["C01234567"], type: "channels" },
})
})
| Input | Type | Required | Description |
|---|---|---|---|
canvasId | string | Yes | Stable Slack Canvas ID. |
accessLevel | "read" | "write" | "owner" | Yes | Access to grant. owner requires a user subject. |
subject | { type: "channels" | "users"; ids: string[] } | Yes | One or more channels or users receiving access. |
Second argument: { account } | string | IntegrationAccountReference<"slack"> | No | Slack binding. |