Skip to main content
outlook.getProfile returns the user behind an Outlook binding.

Example

automations/get-outlook-profile.automation.ts

Inputs

The action has no schema input fields. Its optional second argument { account: string | IntegrationAccountReference<"microsoft"> } 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.