Integrating Slack to Send Slack Messages
Overview
This article describes how to set up a custom "Send Slack Message" action step in Netwrix Privilege Secure for Access Management, which you can then add to activities.
Instructions
Preparing Your Slack App
Create a custom Slack application for this integration.
-
In Slack, go to the Your Apps page: https://api.slack.com/apps/
-
Click Create New App.
-
Select From an app manifest and paste the following YAML into the provided field:
display_information:name: NPS Appsettings:org_deploy_enabled: falsesocket_mode_enabled: falseis_hosted: falsetoken_rotation_enabled: false -
On the Your Apps page, select Incoming Webhooks.
-
Under Activate Incoming Webhooks, click Add New Webhook to Workspace.
- Search for the channel you want Privilege Secure to message. Click Allow. Copy the provided URL.
Importing the Action Step
-
Download the
Send-SlackMessage.ziparchive to the Privilege Secure server: https://dl.netwrix.com/additional/Send-SlackMessage.Addon.zip -
Extract the archive, which contains a README file, an
ActionTemplatesdirectory, and anInstall-Addon.ps1script file. Right-clickInstall-Addon.ps1and select Run with PowerShell. -
When prompted, select
Yto proceed. -
The PowerShell window should quickly execute the script and close.
-
Log in to the Privilege Secure console. If Privilege Secure was already open, refresh the console.
-
In Privilege Secure, go to Activities, select an Activity, and click the green plus sign in either the Pre-Session or Post-Session. The Send Message to Slack activity step is now available.
-
Provide the URL from step 6 of Preparing Your Slack App when configuring the action step.
