Skip to main content

Notifications

Power Platform Community / Forums / General / Identify a Teams user ...
General
Answered

Identify a Teams user by chatbot

Posted on by

Deployed a chatbot on Teams, user interacts with the chatbot. Teams users must log in (organisation, internal) to get to any MS facility including Teams of course. 

How to identify the user (capture user's identity such as user account, or names information in the user profile) who is taking the chatbot services in PVA domain (chat with the chatbot)?

Below screen capture may be clear, as in the transcript report, showing User

Who is the user? (without asking them again, since implicitly, the information is avaiable somewhere as the user must have logged in)

gorLookPo_0-1672293703085.png

 

 

Categories:
  • Re: Identify a Teams user by chatbot

    Greetings Henry James

    First of all, may I wish you a happy, healthy and prosperous year of 2023!

    Perhaps I didn't pay attention to the platform/system environment that I am on. I further searched the community forum and found the below link addressing my issue SO LONG AS I had set my bot be "Authenticate on Teams only". Then there are variable: bot.UserDisplayName that I could use to further get the current log-in user's profile.

    Getting User Details To Use In Power Virtual Agents In Teams (microsoft.com)

     

    Separately, when attempting your above solution, I came across another weird issue (to me) that I shall create another post for getting help. It's regarding some steps in a topic didn't get executed when it's called again. 

    Appreciate your insight.

    Many thanks!

     

  • Verified answer
    HenryJammes Profile Picture
    HenryJammes on at
    Re: Identify a Teams user by chatbot

    I don't think this is possible in PVA for Teams unless you explicitly use the out-of-the-box bot.UserDisplayName (i.e. the user full name) or the bot.UserId (i.e. the Azure Active Directory Object Id) variables as part of the conversation.

    HenryJammes_0-1672662558930.png

     

    Even in the 'full' version of Power Virtual Agents, the 'from' id that can be retrieved from Conversation Transcripts records in Dataverse (a feature that isn't available for Dataverse for Teams bots), is hashed before being written to the transcript for security and privacy considerations.

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
renatoromao Profile Picture

renatoromao 6,459

#2
Pstork1 Profile Picture

Pstork1 1,962

#3
Expiscornovus Profile Picture

Expiscornovus 1,667