> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Set canvas access

> 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.

## Example

```ts automations/share-slack-canvas.automation.ts theme={null}
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" },
  })
})
```

## Inputs

| 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.                                    |

## Output

Returns no value after Slack updates access.
