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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send An Adaptive Cards...
Power Automate
Answered

Send An Adaptive Cards to Teams With an @Mention - Requires a Teams User ID (How Do I Get This ID?)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I can successfully send an adaptive card from Power Automate to Teams, but I'd like the card to generate an @mention.  I have the JSON code for adaptive cards but in order to @mention a user, I need their Teams user ID.  How can I determine a user's Teams ID if I am not using a bot?  See: Sample Adaptive card with a mention  

 

{
 "contentType": "application/vnd.microsoft.card.adaptive",
 "content": {
 "type": "AdaptiveCard",
 "body": [
 {
 "type": "TextBlock",
 "text": "Hi <at>John Doe</at>"
 }
 ],
 "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
 "version": "1.0",
 "msteams": {
 "entities": [
 {
 "type": "mention",
 "text": "<at>John Doe</at>",
 "mentioned": {
 "id": "29:123124124124",
 "name": "John Doe"
 }
 }
 ]
 }
 }
}

 

 

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

    Anyone have any recommendations? 

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    To determine user's ID in Teams requires PowerShell and the Teams PS module. 


    Connect-MicrosoftTeams

     

    Retrieve Group IDs for Sites a User is Assigned:
    Get-Team -User first.last@abc.com

    Teams-PS-to-Determine-Group-IDs.png

    Use Group ID to Retrieve All User IDs for a Teams Site:
    Get-TeamUser -GroupId INSERT-GROUP-ID-HERE

    Teams-PS-to-Determine-a-User-ID.png

    This will list all user IDs for a specific Teams site. This user ID is the same across all Teams site in that tenant. 

    The JSON code for adaptive cards requires a user's Teams user ID for using an @mention in a Power Automate as shown in the initial post.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard