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

# List calendar access rules

> List one page of sharing and access-control rules for a Google Calendar.

`listCalendarAccessRules` inventories who can access a calendar and at what
role. It preserves provider pagination and synchronization tokens.

## Example

```ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { listCalendarAccessRules } from "automate.ax/google-calendar"

export default automation("Audit calendar sharing", () => {
  onHttpRequest({ scope: "automation" })

  listCalendarAccessRules({ calendar: "Team Calendar", maxResults: 250 })
})
```

## Inputs

`calendar` defaults to primary. Optional `includeDeleted`, `maxResults` (1–250),
`pageToken`, and `syncToken` control the page. `account` selects the Google
account.

## Output

```ts theme={null}
interface AccessRulePage {
  rules: Array<{
    id: string
    role: "none" | "freeBusyReader" | "reader" | "writer" | "owner"
    scope: { type: "default" | "user" | "group" | "domain"; value?: string }
  }>
  nextPageToken?: string
  nextSyncToken?: string
}
```

Follow all `nextPageToken` pages before storing `nextSyncToken`.
