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

> Get the mail identity of the connected Microsoft user.

`getProfile` identifies the Microsoft user behind an Outlook account binding.

## Example

```ts automations/get-outlook-profile.automation.ts theme={null}
import { automation } from "automate.ax"
import { getProfile } from "automate.ax/outlook"

export default automation("Get Outlook profile", () => {
  getProfile({})
})
```

## Inputs

Only optional `account: string | IntegrationAccountReference<"microsoft">`,
which defaults to the project Microsoft binding.

## Output

Returns `userId`, `displayName`, `userPrincipalName`, and optional primary
`email`. The primary email can be absent; the sign-in principal remains present.
