> ## 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 List access

> Grant channel or user access to a Slack List.

`slack.setListAccess` grants `read`, `write`, or user-only `owner` access.

```ts automations/share-release-list.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { slack } from "automate.ax/slack"

export default automation("Share release List", () => {
  onDashboardRun({ title: "Share release List" })

  slack.setListAccess({
    listId: "F012ABCD3EF",
    accessLevel: "write",
    subject: { type: "channels", ids: ["C012ABCD3EF"] },
  })
})
```

## Inputs

| Input         | Type                                             | Required | Description                                    |
| ------------- | ------------------------------------------------ | -------- | ---------------------------------------------- |
| `listId`      | `string`                                         | Yes      | List whose access changes.                     |
| `accessLevel` | `"read" \| "write" \| "owner"`                   | Yes      | Access to grant. Only users can become owners. |
| `subject`     | `{ type: "channels" \| "users"; ids: string[] }` | Yes      | One or more channels or users.                 |

## Output

Returns `Signal<void>`.
