Skip to main content

Notifications

Copilot Studio - General
Unanswered

Looking up users via their names

(0) ShareShare
ReportReport
Posted on by 69

Hello there, 

 

I've already implemented a power automate flow to obtain user data based on their bot.DisplayName with both the Search for Users and Get User Profile actions. This flow wouldn't work upon entering anything other than DisplayName or UserID.

 

I'd like to extend this such that someone conversing with the chatbot could ask for a fellow employee's details from their name - their email for instance. (Think of the dropdown list that comes up when you're trying to mention someone in MS Teams). Is there a way to implement this? 

Categories:
  • Renad Profile Picture
    Renad 69 on at
    Re: Looking up users via their names

    Already tried that but it only works for display names i.e. LastName, FirstName. Thus, passing an employee's name wouldn't yield anything.

    Renad_0-1686816299382.png

     

  • MattJimison Profile Picture
    MattJimison 577 on at
    Re: Looking up users via their names

    When asking a question you could use the "Person name" entity to extract just their name from the response, or the "Email" entity if you want to ask for their email address, but that will still be a string representation in both cases.

     

    After getting the value, you could then pass it to a Power Automate flow and use the "Search for users (V2)" action to use that information to gather additional details about that specific user.

     

    If you're otherwise looking for a people picker within PVA, there's currently no way to do that either via a Question or an adaptive card.

     


    Find this post helpful? Please mark it as the solution and/or provide kudos so that it will help others in the future.

    Cheers,
    Matt

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard