Skip to main content

Notifications

Copilot Studio - General
Answered

PVA no longer allowing me to get bot.UserDisplayName

(0) ShareShare
ReportReport
Posted on by 69

Hello there, 

 

Created several power automate flows based on obtaining the user info from bot.UserDisplayName upon the user typing one of the trigger statements. However, no system variables (bot.UserDisplayName and bot.UserID) are showing up. I have tried authoring another bot with another account and it showed up as expected. Both accounts are on the trial version in MS teams.

 

I would like to know what I can do to get it to show up since it has rendered the whole bot unfunctional.

Renad_0-1686486038987.png

 

Categories:
  • Pstork1 Profile Picture
    Pstork1 64,767 on at
    Re: PVA no longer allowing me to get bot.UserDisplayName

    The authentication settings are still there, they just default to Teams in the Teams client. I'm not sure why else the variables wouldn't be available.

  • Renad Profile Picture
    Renad 69 on at
    Re: PVA no longer allowing me to get bot.UserDisplayName

    I'm on the teams client though and according to you there's no authentication needed since it's not the web version yet I'm still facing this issue. 

  • Verified answer
    Pstork1 Profile Picture
    Pstork1 64,767 on at
    Re: PVA no longer allowing me to get bot.UserDisplayName

    If you are working with the PVA client inside Teams then you can only deploy to Teams.  If you are working with the Web PVA client then you need to configure authentication to get the user variables.  Here's the article on how to configure authentication. Configure user authentication - Power Virtual Agents | Microsoft Learn

  • Renad Profile Picture
    Renad 69 on at
    Re: PVA no longer allowing me to get bot.UserDisplayName

    Additionally I never needed to configure authentication for previous bots I've made so I'm kind of at a loss as to how to do that. 

  • Renad Profile Picture
    Renad 69 on at
    Re: PVA no longer allowing me to get bot.UserDisplayName

    I'm working with the PVA version on teams though - not deploying to teams. 

  • Pstork1 Profile Picture
    Pstork1 64,767 on at
    Re: PVA no longer allowing me to get bot.UserDisplayName

    The existence of these variables is dependent on the authentication you are using for your bot. If you are in Teams then the authentication should be Teams and the variables should be there. But if you are inside Teams you don't need a Trial since PVA is included in the Teams license.  So if you are using a trial license and deploying to Teams are you sure you've set the authentication to Teams only?  This is a screenshot of a flow built with the Teams PVA client.

    image.png

  • Renad Profile Picture
    Renad 69 on at
    Re: PVA no longer allowing me to get bot.UserDisplayName

    I am now aware of the fact that this feature is buggy in the preview version, however, I'm using PVA on teams (not unified authoring canvas preview)

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

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard