web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / How to get the user's ...
Copilot Studio
Answered

How to get the user's first name of the function {x} bot.UserDisplayName ?

(0) ShareShare
ReportReport
Posted on by 1,048

Dear Experts,

Is it possible to get only the user's first name of the function {x} bot.UserDisplayname

 

Gr. P

I have the same question (0)
  • ChotiratL Profile Picture
    3 on at

    Turn on the authentication in Security, then the {x} bot.User.DisplayName & ID will be applicable. Hope this help.

    Turn on the authentication in SecurityTurn on the authentication in SecurityThen, bot.UserDesplayName & ID will be applicable.Then, bot.UserDesplayName & ID will be applicable.

  • Verified answer
    SupportBryn Profile Picture
    Microsoft Employee on at

    Hey there @PeKi72,

     

    It's definitely possible to just use the first name! What you'll want to do is have an action that goes into a flow that captures the bot.userID, then add the "Get User profile" action using that ID value as it's user value. You can then return the "Given Name" value to your PVA bot at the end of the flow, and have the bot reference that returned value as the name from then on.

     

    You can reference this thread as well, which includes some visual references: https://powerusers.microsoft.com/t5/General/bot-UserDisplayName/td-p/736847 

     

    Thank you for using Microsoft Power Platform Communities!

    Bryn Baker

    Support Engineer

    Microsoft Power Platform

    If this post helps, then please consider accepting it as the solution to help other members find it more quickly!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 414

#2
chiaraalina Profile Picture

chiaraalina 130

#3
S-Venkadesh Profile Picture

S-Venkadesh 84 Moderator

Last 30 days Overall leaderboard