Pagaya
Prepare the environment as described in Slack section here
Slack portal
Slack Configuration
Go here and create a new APP from scratch https://api.slack.com/apps?new_app=1
Include the Bot
Add these scopes to Bot under 'OAuth & Permissions”
app_mentions:read, channels:join, users:read, users:read.email
Add these scopes to User
Go to “Event Subscriptions” and turn it on
Add this URL
https://{your-domain}/rest/v1/casb/webhook/slack/inspect like https://env35.agatdemo.com/rest/v1/casb/webhook/slack/inspect
and click on Verify. if it’s not verified for the 1’st time, try again
Subscribe to these events “Subscribe to bot events“:
Click on Save Changes
Go to “Install App” and then click on Install/reinstall to Workspace
Copy the Bot User OAuth Token and put it in our DB, settings table, name=CasbSlackAccessBotToken