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

# Get calendar access rule

> Retrieve one Google Calendar sharing rule by immutable ID.

`getCalendarAccessRule` loads the current scope and role for an ACL rule.

## Example

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

export default automation("Inspect a sharing rule", () => {
  onHttpRequest({ scope: "automation" })

  getCalendarAccessRule({
    calendar: "Team Calendar",
    ruleId: "user:ada@example.com",
  })
})
```

## Inputs

`ruleId: string` is required. `calendar` defaults to primary and `account`
selects the Google account.

## Output

Returns `{ id, role, scope }` with the shape documented by [List calendar
access rules](/reference/integrations/google-calendar/actions/list-calendar-access-rules#output).
Rule IDs belong to one calendar; use the same calendar in follow-up update and
delete actions.
