Microsoft Tech Community Live:  Microsoft Teams Edition
November 09, 2021, 08:00 AM - 12:00 PM (PST)

Get User email in Action Card in Incoming Webhook in Teams Channel

%3CLINGO-SUB%20id%3D%22lingo-sub-1278319%22%20slang%3D%22en-US%22%3EGet%20User%20email%20in%20Action%20Card%20in%20Incoming%20Webhook%20in%20Teams%20Channel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1278319%22%20slang%3D%22en-US%22%3E%3CP%3EI%20did%20make%20an%20external%20post%20request%20to%20a%20Teams%20channel%20using%20the%20incoming%20webhooks.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fwebhooks-and-connectors%2Fhow-to%2Fadd-incoming-webhook%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3E(Post%20external%20requests%20to%20Teams%20with%20incoming%20webhooks%3C%2FA%3E%26nbsp%3B)%3C%2FP%3E%3CP%3EI%20did%20use%20the%20JSON%20of%20the%26nbsp%3B%3CSTRONG%3EMessage%20card%3C%2FSTRONG%3E%26nbsp%3Bfor%20the%20payload%20in%20that%20request.%3C%2FP%3E%3CP%3E(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fwebhooks-and-connectors%2Fhow-to%2Fconnectors-using%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3ESending%20messages%20to%20connectors%20and%20webhooks%3C%2FA%3E%26nbsp%3B)%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DHJagath_0-1585911638657.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F181863i19EBB43D8B763D6B%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22DHJagath_0-1585911638657.png%22%20alt%3D%22DHJagath_0-1585911638657.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EUsers%20in%20the%20Teams%20channel%20can%20do%20the%20actions%20with%20this%20message.%3C%2FP%3E%3CP%3E(Add%20a%20comment%2C%20Set%20a%20due%20date%2C%20Change%20status)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EI%20want%20to%20know%20that%20can%20we%20send%20the%20user%20email%20when%20doing%20some%20action%20with%20this%20message%20to%20an%20API%20endpoint%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DHJagath_1-1585911919532.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F181864i90B9863F1D50C0FD%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22DHJagath_1-1585911919532.png%22%20alt%3D%22DHJagath_1-1585911919532.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIn%20this%20example%2C%20I%20want%20to%20send%20the%20comment%20and%20the%20user%20who%20made%20the%20comment%20in%20the%20Teams%20channel.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1278319%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2174863%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20User%20email%20in%20Action%20Card%20in%20Incoming%20Webhook%20in%20Teams%20Channel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2174863%22%20slang%3D%22en-US%22%3E%3CP%3EIts%20almost%20been%20a%20year.%26nbsp%3B%20Any%20update%20on%20this%3F%26nbsp%3B%20Is%20a%20link%20to%20a%20ticket%20or%20anything%20we%20can%20use%20to%20track%20the%20progress%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I did make an external post request to a Teams channel using the incoming webhooks.

(Post external requests to Teams with incoming webhooks )

I did use the JSON of the Message card for the payload in that request.

(Sending messages to connectors and webhooks )

DHJagath_0-1585911638657.png

Users in the Teams channel can do the actions with this message.

(Add a comment, Set a due date, Change status)

 

I want to know that can we send the user email when doing some action with this message to an API endpoint?

DHJagath_1-1585911919532.png

In this example, I want to send the comment and the user who made the comment in the Teams channel.

 

4 Replies

@DHJagath Currently getting the user Email in incoming webhook is not supported. This is in our backlog. However you could use the AAD object id that you get on post request,  to fetch user's email id using Graph API.

Its almost been a year.  Any update on this?  Is a link to a ticket or anything we can use to track the progress?

a full year now.. Any update at all?
I need this too. What is a decent way to at least get the user name in this? I have an action I need them to approve but without identifying who performed the action, this makes it a pain to find out who did it. If this broken everything then I have no way to identify who the culprit was...