Create a Slack Application

To index content from Slack, you must create a Slack OAuth application to represent the connector.

To create a Slack OAuth application to represent the connector

  1. Go to https://api.slack.com/apps.

  2. Click Create New App.

    Make a note of the client ID and client secret. You will need this information to run the OAuth configuration tool that is supplied with the connector.

  3. Click OAuth & Permissions.

  4. Add a redirect URL.

    • To use the NiFi Ingest connector, the redirect URL must match the URL shown in the advanced configuration dialog of the NiFi processor.
    • To use the standard connector, the redirect URL must match the value of the RedirectUrl parameter in the OAuth tool configuration file, oauth_tool.cfg. The default value is https://localhost:7878/oauth.
  5. Add the following User Token Scopes:

    Name Justification
    identify  
    channels:history Process Channels
    channels:read Process Channels
    groups:history Process Groups
    groups:read Process Groups
    im:history Process IM
    im:read Process IM
    mpim:history Process MPIM
    mpim:read Process MPIM
    files:read Process Files
    emoji:read Process Messages
    users:read Mapped Security
    users:read.email Mapped Security
  6. Configure the connector to authenticate using OAuth, by following the steps in Configure OAuth Authentication.