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 / Power Automate / Can I get the @mention...
Power Automate
Answered

Can I get the @mention token for user to display the user's name instead of their email address?

(0) ShareShare
ReportReport
Posted on by

I am working with custom/complex adaptive cards and I am trying to use the @mention token for a user in the card. After a lot of digging, I finally got it to work, but it is displaying the user's email/principle name instead of the Display Name. 

 

Below is an image of my adaptive card JSON. The trials in getting the @mention to work in my card meant I had to use a TextBlock, rather than a RichTextBlock. Also, I did not include the section that was mentioned in other posts such as this one; https://poszytek.eu/en/microsoft-en/office-365-en/powerautomate-en/mentioning-in-microsoft-teams-via-power-automate/ 

specifically, the bit referencing this page: https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-format?tabs=adaptive-md%2Cconnector-html#sample-adaptive-card-with-a-mention 

Adaptive Card Json w/ @mention tokenAdaptive Card Json w/ @mention token

 

 

 

Snip of resulting adaptive card with @mention tokenSnip of resulting adaptive card with @mention token

 

If you look at the first link I provided (Link ) you can see the resulting adaptive card has the Display Name of the @mention'd person, while in mine it shows the user's email/principal name.

 

Any help with this?

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    So I did find a solution, but it was to not use the @mention token action at all. If you do what one of the links above says and copy this to the (near) end of your card you can then use a textbox and write in <at>name here</at> and it will output as an @token.

     

     "msteams": {
     "entities": [
     {
     "type": "mention",
     "text": "<at>John Doe</at>",
     "mentioned": {
     "id": "xxxxxxxx",
     "name": "John Doe"
     }
     },

     

  • v-bofeng-msft Profile Picture
    on at

    Hi @Anonymous :

    Thanks for your solution,I will be helpful to others.

    Best Regards,

    Bof

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 > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard