Slack Configuration¶
.. _slack_config:
Follow these steps to analyze Slack objects with Cartography.
Create a Slack integration
Go to
https://api.slack.com/apps/and create a new integrationAdd bot permissions in
OAuth & Permissionschannels:read
groups:read
team.preferences:read
team:read
usergroups:read
users.profile:read
users:read
users:read.email
Install the App on your Slack Workspace
Get “Bot User OAuth Token” and store it into an env var
Provide env var name with
--slack-token-env-var ENV_VAR_NAMEparameter
Note
By default, Cartography will ingest data from the Slack workspaces associated with the provided token. You can optionally specify particular Slack Team IDs to limit the ingestion scope.
Get your Slack Team ID (Optional)
In a web-browser go to
https://<your-team>.slack.comYou will be redirected to
https://app.slack.com/client/<your-team-id>Use
--slack-teams <your-team-id>parameter (you can provide multiple teams id comma separated)