New Employee Welcome Email with Manager Info
When a new user appears in Office 365, look up their manager and department, then send a personalized welcome email with org context.
Provided as-is, without warranty of any kind. Review and test each pattern in a non-production environment before deploying it to live automations. See our Terms.
Overview
This flow watches for new user accounts created in Microsoft 365 (via Azure AD/Entra ID) and, for each new hire, enriches the welcome experience by pulling the user's manager and department from the directory before sending a personalized welcome email from HR. The result is a hands-off onboarding touchpoint that arrives the moment IT provisions the account, with org context (department, job title, manager name and email) already baked in.
It is intentionally simple so HR or IT can adapt it without rebuilding the trigger: change the subject, swap the email body, route to a shared mailbox, or add a CC to the manager. Tenant-specific values (sender mailbox, HR signature, optional CC) are exposed as environment variables so deploying into a new tenant only requires updating defaults — no flow edits required.
Use Case
Most onboarding workflows fire from an HRIS export or a manual ticket, which means the welcome email arrives hours or days after the account is actually usable. This flow closes that gap by reacting to Azure AD directly — the moment the new user record exists, the welcome email goes out with manager info already included, so the new hire has a friendly first message in their inbox before they even sign in.
It is the lightest-weight piece of a larger onboarding stack and pairs well with provisioning, training-assignment, and Teams-introduction flows.
The flow is ideal for teams that:
- HR teams who want new hires to get a warm, branded welcome email automatically
- IT admins who provision accounts in Azure AD/Entra and want HR notified without a manual handoff
- Small and mid-size orgs without a full HRIS-to-Power-Automate integration
- Teams piloting Power Automate that need a low-risk, high-visibility first flow
Flow Architecture
When a new user is created
Office 365 Users / Azure AD triggerFires when a new user account appears in the tenant directory. The trigger emits the new user's UPN and object ID, which downstream actions use to pull profile details.
Get user profile
Office 365 Users - Get user profile (V2)Looks up the new user by UPN to retrieve display name, job title, department, and mail address — the fields the welcome email personalizes.
Get manager
Office 365 Users - Get manager (V2)Resolves the new user's manager from Azure AD so the email can greet them by name and optionally CC the manager.
If manager was found
If conditionBranches on whether the manager lookup succeeded — new hires without a manager assigned still get a welcome email, just without the manager line.
- Send welcome email (with manager CC) — Sends a personalized welcome email from the HR mailbox to the new user, CC'ing the manager and including department, title, and manager name.
Send the welcome email without manager personalization or CC.
Environment Variables
| Schema name | Type | Default | Description |
|---|---|---|---|
| flowlibs_WelcomeSenderMailbox | String | <configure> | The mailbox the welcome email is sent from (e.g. hr@yourcompany.com). Must be a mailbox the connection user can send-as or send-on-behalf-of. |
| flowlibs_WelcomeEmailSubject | String | Welcome to your-org! | Subject line of the welcome email. Supports tokens replaced at runtime ({{DisplayName}}, {{Department}}). |
| flowlibs_WelcomeEmailSignature | String | — The HR Team | Closing signature appended to the welcome email body. |
| flowlibs_CcManagerOnWelcome | Yes/No | Yes | When Yes, the new hire's manager is CC'd on the welcome email. When No, the email goes only to the new user. |
Connectors & Connections
| Connector | API name | Actions used |
|---|---|---|
| Office 365 Users | shared_office365users | When a new user is created (trigger) Get user profile (V2) Get manager (V2) |
| Office 365 Outlook | shared_office365 | Send an email (V2) |
Note — All connections are referenced as solution connection references; the flow is portable between environments as long as a connection is mapped at import time.
Customization Guide
Almost every realistic variant of this flow can be implemented by changing environment variable values. A few cases require small edits inside the flow definition — those are called out explicitly below.
- Brand the email body
- Replace the placeholder welcome body with your org's onboarding copy. Use the dynamic content for DisplayName, Department, JobTitle, and Manager.DisplayName so personalization survives the swap.
- Route via a shared HR mailbox
- Set flowlibs_WelcomeSenderMailbox to a shared mailbox (e.g. hr@yourcompany.com) and ensure the connection account has Send-As permission. This keeps replies in the HR inbox rather than an individual's mailbox.
- Suppress the manager CC
- Flip flowlibs_CcManagerOnWelcome to No to send the welcome email only to the new hire — useful in tenants where managers prefer a separate notification flow.
- Filter by department or location
- Add a condition immediately after Get user profile to short-circuit when the user's Department or UsageLocation does not match the values you want to welcome (e.g. exclude service accounts or contractors).
Key Expressions
The flow is intentionally light on Power Fx / WDL gymnastics — the heaviest expressions are the branch-name concatenation and the approval outcome check. They are listed below in the order they appear in the flow.
EXPR.01Skip service / system accounts
Optional gate to avoid welcoming non-human accounts that get created in Azure AD.
EXPR.02Manager-present check
Used in the If condition — true when Get manager returned a manager with an email address.
EXPR.03Personalized greeting
Builds the opening line of the welcome email using the user's first name from Azure AD.
Comments
Sign in to join the conversation.
Sign inNo comments yet. Be the first to share your experience with this flow.