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

> Retrieve the bot user represented by the connected credential.

`notion.getCurrentUser` retrieve the bot user represented by the connected credential.

## Example

```ts automations/notion-get-current-user.automation.ts theme={null}
import { automation, onSchedule } from "automate.ax"
import { notion } from "automate.ax/notion"

export default automation("Get current Notion user", () => {
  onSchedule({ schedule: "0 9 * * *" })

  notion.getCurrentUser()
})
```

## Inputs

No input is required. OAuth and personal-access-token connections are supported. Every input accepts a compatible signal, and an optional second argument can select a named account.

## Output

Returns the current full `user` object.

Use this action to confirm which bot identity and workspace a credential represents.
