cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JoshE
Frequent Visitor

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

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 it 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... 

specifically the bit referencing this page: https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-format?t... 

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?

2 REPLIES 2
ChristianP
New Member

I have the very same problem. My mention token turns out to put the userprincipalname and not the display name. Please help! @MicrosoftPowerAutomate

Same issue here mentions only uses email not displayName

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,695)