Skip to main content
Community site session details

Community site session details

Session Id : mg9t9sIptAUondNwcLmU1J
Power Automate - Building Flows
Answered

Search Users (V2) from First and Last Name (combined)

Like (0) ShareShare
ReportReport
Posted on 8 Aug 2023 16:25:18 by 4

Hi, 

 

I'm building a flow that is extracting rows from an excel document. One of the columns related to the "Owner" and provides the value of first and last name (i.e. John Doe). How can I use the full name of a user and search using the Search Users (V2) action. 

 

Thanks!

  • Verified answer
    v-bofeng-msft Profile Picture
    on 10 Aug 2023 at 06:04:19
    Re: Search Users (V2) from First and Last Name (combined)

    Hi @cczaniec ,

     

    You could use this expression to format the 'John Doe' to 'Doe, John'.

     

    concat(split('John Doe',' ')[1],',',split('John Doe',' ')[0])

     

    Best Regards,

    Bof

  • cczaniec Profile Picture
    4 on 09 Aug 2023 at 13:46:14
    Re: Search Users (V2) from First and Last Name (combined)

    Unfortunately simply concatenating the first and last does not work and yields no results. Display names are formatted as "Doe, John"

  • Mitanshu Profile Picture
    1,635 Moderator on 08 Aug 2023 at 16:40:55
    Re: Search Users (V2) from First and Last Name (combined)

    The search term applies to display name, given name, surname, mail, mail nickname and user principal name.

     

    So you can enter concatenated first name and last name from the Owner field and put under the Search for users (v2) action.

     

    This will give you an array of users that match the search term

    happyume_1-1691512753519.png

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If this post or my previous reply was useful in other ways, please consider giving it Thumbs Up.

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Loading complete