Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jschlackman/f14093d05cfead37490c3918a67567d2 to your computer and use it in GitHub Desktop.
Save jschlackman/f14093d05cfead37490c3918a67567d2 to your computer and use it in GitHub Desktop.
JSON payload for webhooks sent from ScreenConnect to Teams for the ConnectWise Access Management feature. This is an alternative to the official integration, allowing more flexibility in terms of which requests are forwarded and using more concise and modern adaptive card formatting.
{{
"type": "message",
"attachments": [
{{
"contentType": "application/vnd.microsoft.card.adaptive",
"contentUrl": null,
"content": {{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4",
"body": [
{{
"type": "TextBlock",
"text": "Elevation Request received from {Session.Name:q}",
"wrap": true,
"size": "large",
"weight": "bolder",
"style": "heading"
}},
{{
"type": "TextBlock",
"text": "🖥 {Session.GuestMachineDescription:q}",
"wrap": true,
"isSubtle": true
}},
{{
"type": "FactSet",
"separator": true,
"facts": [
{{
"title": "Program Name",
"value": "{GETDATAFIELD(CorrelationEvent.Data, 'ProgramName'):q}"
}},
{{
"title": "Publisher Name",
"value": "{GETDATAFIELD(CorrelationEvent.Data, 'PublisherName'):q}"
}},
{{
"title": "File Path",
"value": "{GETDATAFIELD(CorrelationEvent.Data, 'FilePath'):q}"
}},
{{
"title": "User",
"value": "{GETDATAFIELD(CorrelationEvent.Data, 'User'):q}"
}},
{{
"title": "Request Reason",
"value": "{GETDATAFIELD(Event.Data, 'Reason'):q}"
}}
]
}},
{{
"type": "ActionSet",
"actions": [
{{
"type": "Action.OpenUrl",
"title": "Review Request",
"tooltip": "Open request for review in ScreenConnect web console.",
"url": "{$WEBSERVERADDRESSABLEURI:q}/Host#Access///{Session.SessionID}//Select//AccessManagement"
}}
]
}}
]
}}
}}
]
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment