I'm trying to solve the task with passing the actor to the HttpPOST action from the card in Teams. So once user clicked on action I can use Inputs for getting user input and add it to the POST action this way:
{
"@type": "ActionCard",
"name": "Comment",
"inputs": [
{
"@type": "TextInput",
"id": "comment",
"isMultiline": true,
"title": "Input's title property"
}
],
"actions": [
{
"@type": "HttpPOST",
"name": "Action's name prop.",
"target": "https://yammer.com/comment?postId=123",
"body": "comment={{comment.value}}"
}
]
}
But I would like to add some user information (name, email, whatever).
Do we have some predefined variables can be used for it?
Side Notes:
1. Connector posts the reply to the card after the success response from the HttpPOST action containing the actor name (so it looks promising):
2. Connector passes the access_token
to the HttpPOST API endpoint which contains some information (sub, tid). But there is no any scopes so even I will found the correct userprofile
endpoint for STS I will not be able to call it
3. Based on the sample I was able to use the ActionableMessageTokenValidator
but the result is useless:
- shows the same sub
only (I saw in the token)
Related issue: https://github.com/OfficeDev/outlook-actionable-messages-csharp-token-validation/issues/9