---
updatedAt: 2025-09-21T00:18:18.000Z
agentTools:
  projectIndex: https://docs.liongard.com/llms.txt
---

# Slack

This document provides the steps required to configure the Slack Inspector.

> 👍 Quick Details
>
> **Recommended Agent:** On-Demand\
> **Supported Agents:** On-Demand or Self-Manged\
> **Is Auto-Discovered By:** N/A\
> **Can Auto-Discover:** N/A\
> **Parent/Child Type Inspector:** No\
> **Inspection via:** API\
> **Data Summary:** [Here](https://docs.liongard.com/docs/cloud-system-inspector-summary#slack)

# Overview

Liongard's Slack Inspector pulls information about a specific Slack workspace into Liongard.

## See it in Action

<Embed url="https://www.youtube.com/watch?v=7BkmBBc0tmc" title="Slack - See it in Action" favicon="https://www.google.com/favicon.ico" image="https://i.ytimg.com/vi/7BkmBBc0tmc/hqdefault.jpg" provider="youtube.com" href="https://www.youtube.com/watch?v=7BkmBBc0tmc" typeOfEmbed="youtube" html="%3Ciframe%20class%3D%22embedly-embed%22%20src%3D%22%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Fsrc%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252F7BkmBBc0tmc%253Ffeature%253Doembed%26display_name%3DYouTube%26url%3Dhttps%253A%252F%252Fwww.youtube.com%252Fwatch%253Fv%253D7BkmBBc0tmc%26image%3Dhttps%253A%252F%252Fi.ytimg.com%252Fvi%252F7BkmBBc0tmc%252Fhqdefault.jpg%26key%3D7788cb384c9f4d5dbbdbeffd9fe4b92f%26type%3Dtext%252Fhtml%26schema%3Dyoutube%22%20width%3D%22854%22%20height%3D%22480%22%20scrolling%3D%22no%22%20title%3D%22YouTube%20embed%22%20frameborder%3D%220%22%20allow%3D%22autoplay%3B%20fullscreen%22%20allowfullscreen%3D%22true%22%3E%3C%2Fiframe%3E" />

# Inspector Setup Preparation

## 1. Configure the Slack App

The Slack Inspector currently requires a single-workspace Slack app to be installed in the workspace that is to be inspected.

1. Navigate to <https://api.slack.com/apps> and sign in to your Slack account. This **account must be a workspace administrator** for the to-be-inspected workspace.

![](https://files.readme.io/49878b9-Screen_Shot_2020-04-21_at_11.34.38_AM.png "Screen Shot 2020-04-21 at 11.34.38 AM.png")

2. Once you've logged in, click **Create an App**.

![](https://files.readme.io/b270aa7-Screen_Shot_2020-04-21_at_11.39.27_AM.png "Screen Shot 2020-04-21 at 11.39.27 AM.png")

3. Under **App Name**, enter a name that will help you identify this app (e.g. 'liongard-slack-inspector')

4. Under **Development Slack Workspace**, select the workspace you want to inspect. Finally, click **Create App**.

![](https://files.readme.io/f824bad-Screen_Shot_2020-04-21_at_11.43.22_AM.png "Screen Shot 2020-04-21 at 11.43.22 AM.png")

5. On the next page, select **Permissions** under **Add features and functionality** to configure the scopes your application will need to call Slack's Web APIs.

![](https://files.readme.io/43ce3ae-Screen_Shot_2020-04-21_at_11.45.48_AM.png "Screen Shot 2020-04-21 at 11.45.48 AM.png")

6. On the next page, under **Redirect URLs**, select **Add New Redirect URL** and add "<https://slack.com/oauth/v2/authorize>" as a redirect URL for your app.

![](https://files.readme.io/96e3adb-Slack-Inspector-Setup-Redirect-URL.png "Slack-Inspector-Setup-Redirect-URL.png")

Further down on the same page, locate the section labeled **Scopes**.

This app utilizes "User Scopes," which allow the app to act on the behalf of the user(s) for which they've been authorized. In this case, you'll be authorizing these scopes to the account you're currently logged in as.

![](https://files.readme.io/6b10fd2-Screen_Shot_2020-04-21_at_2.08.46_PM.png "Screen Shot 2020-04-21 at 2.08.46 PM.png")

7. Under **User Token Scopes**, click **Add an OAuth Scope** and add the following read-only user scopes:

* **admin\***
* **channels:read**
* **groups:read**
* **team:read**
* **usergroups:read**
* **users.profile:read**
* **users:read**
* **users:read.email**
* **im:read\***
* **links:read\***
* **pins:read\***
* **search:read\***

8. Finally, navigate back to the top of the page to find the section labeled **Settings** > Navigate to **Install App**. Click **Install to Workspace** to connect the app to your workspace.

![](https://files.readme.io/ad02955-Slack-Inspector-Install-To-Workspace.png "Slack-Inspector-Install-To-Workspace.png")

9. On the next page, you'll be presented with a consent screen to authorize the requested scopes on behalf of the users in your workspace. Click **Allow** to grant the requested permissions.

![](https://files.readme.io/1b344f6-Screen_Shot_2020-04-21_at_1.24.46_PM.png "Screen Shot 2020-04-21 at 1.24.46 PM.png")

10. On the page you're returned to, locate the section labeled **Tokens for Your Workspace** and copy down the **OAuth Access Token.** You'll need this token when configuring the inspector in Liongard.

![](https://files.readme.io/e50a6bb-Screen_Shot_2020-04-21_at_1.28.22_PM.png "Screen Shot 2020-04-21 at 1.28.22 PM.png")

# Liongard Inspector Setup

In Liongard, navigate to **Admin > Inspectors > Inspector Types > Navigate to the Slack Inspector > Select Add System.**

Fill in the following information:

* **Environment:** Select the Environment this System should be associated with
* **Friendly Name:** Suggested "Slack Inspector nvironment Name]"
  "
* **Agent:** Select On-Demand Agent (Note: if you enable Slack's **Restrict API Token Usage** functionality, you must select your self-hosted agent and enter its IP address in the Allowed IP Address Ranges section in Slack.)
* **Access Token**: Enter the OAuth Access Token that was automatically generated when you installed the app to your workspace. You should have copied this token in Step 10.
* **Scheduling:** The Inspector will default to run once a day at the time the Inspector is set up. Here you can adjust the schedule
* **Inspector Version:** Latest

Select **Save.** The Inspector will now be triggered to run within the minute.

## Roll out Inspectors at Mass via CSV Import

For more information, please visit our [documentation](https://docs.liongard.com/docs/system-inspector-overview#inspector-setup-in-bulk-via-csv).

To import Slack Inspectors via CSV Import, navigate to **Admin > Inspectors > Slack > Select the down arrow icon in the top right-hand to Download CSV Import Template.**

In the CSV Template, each row, starting on row three, will represent an Inspector. Fill in the following information for each Inspector you want to roll out:

* **Agent.Name:** This column is case sensitive. **Copy and paste** the associated Agent name from the **Admin** > **Agents** screen
* **Inspector.Name:** Enter "slack-inspector"
* **Environment.Name:** This column is case sensitive. **Copy and paste** the associated Environment name from the Dashboard screen
* **Alias:** Enter the Desired Friendly Name
* **SecureConfig.ACCESS\_TOKEN:** The access token that was automatically generated when you installed the app to your team's workspace
* **FreqType:** Enter "days"
* **FreqInterval:** Enter "1"

When ready to Import the CSV Template of Inspectors, navigate to **Admin > Inspectors > Slack > Select the up arrow icon in the top right-hand to Import CSV > Select your saved template.**

After the successful import notification, **reload your browser** to find your imported Inspectors.

These Inspectors will automatically trigger themselves to run within a minute.

### Optional: Turn on Flexible Asset/Configuration Auto-Updating

If you would like this Inspector's data to be sent to ConnectWise and/or IT Glue, turn on Flexible Assets/Configurations for this Inspector:

* ConnectWise:  **Admin > Integrations > ConnectWise > Configuration Types > Confirm the "Configuration Auto-Updating" toggle is enabled**
* IT Glue:  **Admin > Integrations > IT Glue > Flexible Assets > Confirm the "Flexible Asset Auto-Updating" toggle is enabled**