Skip to main content

Notifications

Copilot Studio - Building Copilot Studio Chatbo...
Answered

Getting Things Ready -- An Initial Question About Knowing Who the Bot is Talking to

(0) ShareShare
ReportReport
Posted on by 20

As I start to think about setting up topics for my first bot, I've realized that all of my interactions would be much easier (and shorter) if I knew not only the name of the person the bot was talking to, but also the information contained in say, their Outlook profile.

 

How do you get access to that level of information about the user that initiates the chat?

 

So -- person's physical location, department they belong to, etc.

 

Thanks everyone!

  • Verified answer
    renatoromao Profile Picture
    renatoromao 6,819 on at
    Re: Getting Things Ready -- An Initial Question About Knowing Who the Bot is Talking to

    Hi @JohnH ,

     

    You need the Administrator's consent to allow access to the user information.

    Basically, you can follow this post to help you better: https://powerusers.microsoft.com/t5/General/Retrieve-email-address-from-authenticated-user-profile/m-p/721746

     

  • JohnH Profile Picture
    JohnH 20 on at
    Re: Getting Things Ready -- An Initial Question About Knowing Who the Bot is Talking to

    Thanks @renatoromao 

     

    using the Only For Teams Authentication (under Manage/Security) -- how would i create a flow to return user information (from graph or elsewhere?). 

     

    Or -- to get to the level of information I want, do I have to use Manual (which appears to be a much more in depth process and looks to require Admin assistance?)

  • renatoromao Profile Picture
    renatoromao 6,819 on at
    Re: Getting Things Ready -- An Initial Question About Knowing Who the Bot is Talking to

    Hi @JohnH ,

     

    You can connect using the Authentication to get more details about the user: https://docs.microsoft.com/en-us/power-virtual-agents/teams/advanced-end-user-authentication-teams

     

    After to get the current authentication, you can call the Power Automate workflow to get the details using the Microsoft Graph API.

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,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard

Featured topics