A colleague had a SharePoint list where people typed the manager’s name as plain text, and his flow needed to email that manager. Names are easy for people and useless for email, so the flow first had to turn “Megan Bowen” into megan@contoso.com.
In this tutorial, I’ll show you how to get an email address from a name in Power Automate, how to make sure you got the right person, and how to get the current user’s email, a full profile, and a user’s SharePoint site ID.
Quick answer: Add the Office 365 Users action Search for users (V2), set Search term to the name, Top to 1 and Is search term required to Yes. Then read the address with first(outputs('Search_for_users_(V2)')?['body/value'])?['Mail']. If the name might match several people, check the number of results first.
Before you start
- If the name comes from a SharePoint Person column, you don’t need a search at all: the trigger already gives you the person’s Email.
- Search for users (V2) reads from Microsoft Entra ID. Guest accounts may get a 403 error when they run it.
- Names aren’t unique. Two people called Alex Wilber get the same search result, so an email or employee ID is always a better key.
For every other way to get a user’s email, see how to get a user email address in Power Automate.
Get an email address from a name
Step 1: Create the flow
Create an Instant cloud flow with Manually trigger a flow, so you can test it. In a real flow, the name usually comes from a list item or a form.

Step 2: Search for the user
Add Search for users (V2) from the Office 365 Users connector. Under the advanced parameters, set:
- Search term: the name, for example Lidia Holloway.
- Top: 1. The default is 1,000 results.
- Is search term required: Yes. Otherwise, an empty name returns every user in your organization.

The search matches display names, first and last names, email addresses and user principal names.
Step 3: Use the email
Add Send an email (V2). If you pick Mail from the dynamic content, Power Automate wraps the action in an Apply to each loop, because the search returns a list:

To avoid the loop, use this expression in the To field instead. It takes the first match:
first(outputs('Search_for_users_(V2)')?['body/value'])?['Mail']
Save and test the flow; the email goes to the person you searched for. For more on this action, see how to use the Send an email (V2) action.
Make sure you found the right person
Set Top to 2 instead, and add a Condition that checks the number of results:
length(outputs('Search_for_users_(V2)')?['body/value'])
If it’s 1, send the email. If it’s 0 or 2, send the item to an admin to check instead of guessing. I explain conditions like this in how to send an email using an if condition.
Get the current user’s name and email
To get the details of the person whose connection runs the flow, add Get my profile (V2):


Add a Compose with the display name and email from its outputs:
Display Name: @{outputs('Get_my_profile_(V2)')?['body/displayName']}
Email: @{outputs('Get_my_profile_(V2)')?['body/mail']}


In an automated flow, this is the flow owner’s connection, not the person who created the item. Use the trigger’s Created By Email for that.
Get a full user profile from an email
Once you have an email, Get user profile (V2) returns everything else: job title, department, office location and more. Enter the email or user principal name in User (UPN):


To find the person’s manager too, add Get manager (V2) with the same email. For sending to a whole team, see how to send an email to multiple recipients from a SharePoint list.
Get a user’s SharePoint site user ID
Some SharePoint REST calls need the user’s numeric ID in that site, not their email. This ID belongs to the site, so it’s different on every site, and it has nothing to do with the list item’s ID.
My example uses an Issue Tracker list, and the flow starts with When an item is created:


Add Send an HTTP request to SharePoint with the GET method, the header Accept: application/json;odata=nometadata and this Uri, which looks up the person who created the item:
_api/web/siteusers/getbyemail('@{triggerOutputs()?['body/Author/Email']}')
Then read the ID with body('Send_an_HTTP_request_to_SharePoint')?['Id'], for example in a Compose or a variable:


If the person has never visited the site, the lookup fails. Use ensureuser to add them first. For more REST calls like this, see how to add multiple users to a SharePoint group.
Troubleshooting
- The flow emails the wrong person: the name matched several users. Check the result count, or use an email instead of a name.
- The search returns everyone: the name was empty and Is search term required was No.
- 403 or 401 errors: guest users can’t run these Office 365 Users actions. Use a member account’s connection.
- Mail is empty: the account has no mailbox. Use UserPrincipalName instead.
These Power Automate tutorials go well with this one:
Frequently Asked Questions
How do I get an email address from a name in Power Automate?
Use Search for users (V2) with the name as the search term and read Mail from the first result. Microsoft documents the action in the Office 365 Users connector reference.
Why does Search for users (V2) return more than one user?
The search matches parts of names and emails, and returns up to 1,000 users by default. Set Top and check how many results you got.
How do I get the current user’s email in Power Automate?
Use Get my profile (V2) and read mail from its output. In a SharePoint flow, Created By Email from the trigger is usually what you want.
What’s the difference between a user’s site ID and their Entra ID?
The site user ID is a number that only exists in one SharePoint site. The Microsoft Entra ID object ID is the same everywhere in your organization.

I have worked with Microsoft technologies for more than 18 years, including SharePoint, Microsoft 365 and the Power Platform (Power Apps, Power Automate and Power BI), at companies like HP, TCS and KPIT. I started EnjoySharePoint in 2011 to share the solutions I build in real projects with readers in the United States, Canada, the United Kingdom, Australia, New Zealand and beyond. Microsoft has recognized this work with the Microsoft MVP award 13 times since 2014.
Hi Bijay,
Very interesting and helpful article for a beginner like me, thank you for sharing your knowledge here.
I’m hoping you can assist with a flow I’ve been having some trouble with. I am trying to obtain a user’s email address by specifying their job title, I tried using the Search for users (V2) action with the following Search term but it is not working:
LookUp(Office365Users.SearchUserV2({searchTerm:””}).value, JobTitle=”CEO”).Email
Any guidance you can offer is greatly appreciated.