Skip to main content

Notifications

Copilot Studio - Calling Actions from Copilot S...
Answered

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

(0) ShareShare
ReportReport
Posted on by 1,019

Dear Experts,

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

 

Gr. P

Categories:
  • ChotiratL Profile Picture
    ChotiratL 3 on at
    Re: How to get the user's first name of the function {x} bot.UserDisplayName ?

    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
    SupportBryn on at
    Re: How to get the user's first name of the function {x} bot.UserDisplayName ?

    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

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