> ## 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 current user

> Get the Calendly user represented by the connected account.

`calendly.getCurrentUser` takes no input and returns the connected user's profile, current organization URI, scheduling URL, timezone, locale, and timestamps.

```ts automations/get-calendly-user.automation.ts theme={null}
import { automation, onDashboardRun, sendEmail } from "automate.ax"
import { calendly } from "automate.ax/calendly"

export default automation("Get Calendly user", () => {
  onDashboardRun({ title: "Get Calendly user" })
  const user = calendly.getCurrentUser()
  sendEmail({ subject: `Calendly: ${user.name}`, text: user.schedulingUrl })
})
```

Use `currentOrganization` and `uri` as inputs to organization- and user-scoped actions or triggers.
