This is an endpoint context server action configuration to send messages to Microsoft Teams via a ClearPass Context Server Action (CSA).
2017.01 (2017-10-10)
- 2017.01 (2017-10-10) Initial Release. Tested with ClearPass 6.6.8.
-
In Teams, navigate to the channel where alerts will be sent
-
Hover over the channel name and then click the ellipsis and then click Connectors
-
Look for 'Incoming Webhook' and click Configure
-
Give the webhook a name (ex: ClearPass) and optionally add an icon image
-
Click Create to finish
-
Copy the webhook URL at the bottom and save it as it will be required in ClearPass
-
Download Teams server profile > clearpass-exchange_microsoft-teams_ecs-csa.xml
-
Import this context server profile in ClearPass under Administration > External Servers > Endpoint Context Servers
-
Navigate to Administration > Dictionaries > Context Server Actions
-
In the Context Server Actions list, look for the action named Send Message to Teams, click the check box next to it and click Copy
-
Click the newly cloned action
-
Modify the name to best represent the message
-
Look for the URL field. Take the webhook URL from the Teams setup and copy everything after 'https://outlook.office.com/webhook/' and overwrite 'replace-me-replace-me'
-
The content tab contains the JSON payload with the message content. Modify the default text to include the required information
-
Click Save to finish
-
Create an enforcement profile by navigating to Configuration > Enforcement > Profiles > Add
-
Select the HTTP Enforcement template and give it a name
-
On the Attributes tab, select outlook.office.com as the Target Server and for Action, select the name of the customized CSA that was created. Click Save to finish.
NOTE: A detailed explanation of the message card formatting and all available options is available on the Microsoft Doc Center
Copyright (c) Hewlett Packard Enterprise Development LP. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License").
Author: @timcappalli, Aruba Security Group Organization: Aruba, a Hewlett Packard Enterprise company