Integration Service
latest
false
Banner background image
Integration Service User Guide
Last updated Apr 24, 2024

Authentication for Slack

Prerequisites

Depending on the authentication type you select, you need one of the following credentials:

  • OAuth 2.0 Authorization code: User scopes, Bot scopes, and your Slack credentials.
  • Bring your own OAuth 2.0 app: Client ID, Client secret, User scopes, Bot scopes.
For creating a private OAuth2 app, follow the steps mentioned in the Slack documentation.

To be able to create a connection, you need to:

  • be a member or a guest of a Slack workspace

Add the connection for Slack

To create a connection to your Slack instance, you need to perform the following steps:

  1. Select Integration Service from Automation Cloud.
  2. From the Connectors list, select Slack. You can also use the search bar to narrow down the connector.

  3. Select the Connect to Slack button.
  4. You can choose between two authentication types: OAuth 2.0 Authorization code or Bring your own OAuth 2.0 app.
    1. If you select the Bring your own OAuth 2.0 app method, enter the required credentials and select Connect.
    2. If you select the default OAuth 2.0 Authorization code method, follow the steps below.
  5. Review or change the Bot scopes and/or the User scopes as per your requirement/use-case. This is an optional step, as the default scopes can be used as-is for connection creation
  6. Select Connect.

  7. You are now redirected to Slack sign in page. Enter your workspace URL and select Continue.

  8. If you're a member of the workspace, select Sign in with SSO. If you're a guest, select I have a guest account and you are prompted to enter your email address and password. For this example, we are choosing to sign in with SSO.

  9. Select Allow. With access to your Slack account, UiPath can do the following:

    • View content and info about you
    • View content and info about channels and conversations
    • View content and info about your workspace
    • Perform actions as you
    • Perform actions in channels and conversations
    • Perform actions in your workspace



  10. Your connection has been added.

Scopes/Permissions

You can use the connection to enable the Slack activities package in UiPath Studio to build automations for user and channel management, scheduled messaging, and other ways of working together. The various permission-based use cases that can be achieved are as follows:

Scope/PermissionUsecaseActivity/Event
chat:write (Both User and Bot Token)
  1. Sending a message in a channel as a Bot or User

  2. Sending a reply to a message in channel as a Bot or User

  3. When a button is clicked in a channel, send an ephemeral message or a me message to the user

  1. Send Message to Channel

  2. Send Reply

chat:write:customize (Bot token only)Sending a message in a channel or to a user using a customized Bot name and icon
  1. Send Message to Channel

  2. Send Message to User

chat:write:public (Bot token only)Sending notifications/announcements to public channels as a Bot even if the Bot is not a channel memberSend Message to Channel
links:write (Both User and Bot Token)Sending messages with preview of links such as Jira ticket or GitHub issue etc. as a Bot or User
  1. Send Message to Channel

  2. Send Message to User

channels:write (User token only)
  1. Creating public channels for different teams and users based on need / topic / goal as a user

  2. Dynamically archive or unarchive or close the temp channel/conversation as a user when the support ticket is closed or reopened

  1. Create Channel

  2. Archive Channel

  3. Set Channel Topic

channels:manage (Bot token only)
  1. Creating public channels for different teams and users based on need / topic / goal as a bot

  2. Dynamically archive or unarchive or close the temp channel/conversation as a user when the support ticket is closed or reopened

  1. Create Channel

  2. Archive Channel

  3. Set Channel Topic

channels:join (Bot token only)Uploading a media file as a Slack message in a channel as a Bot by first joining the channelJoin Channel
groups:write (Both User and Bot Token)Creating private channels for different teams and users based on need / topic / goal as a Bot or UserCreate Channel
im:write (Both User and Bot Token)Sending individual message (IM) as a Bot or UserSend Message to User
mpim:write (Both User and Bot Token)
  1. Sending a message in a MPIM group as a Bot or User

  2. Sending a reply to a message in the MPIM group as a Bot or User

  3. Open a MPIM conversation by adding multiple users for sending message as a Bot or User

  1. Send Message to Channel

  2. Send Reply

channels:read (Both User and Bot Token)
  1. Retrieving the list of public channels of the connected workspace in order to send messages or manage users as a Bot or User.

  2. Reading the public channel information as a Bot or User for sending messages or managing users

  1. Send Message to Channel

  2. Send Message to User

  3. Send File to Channel

  4. Send Reply

  5. Invite Users to Channel

  6. Remove User from Channel

  7. List all Channels

  8. Get Channel Info

  9. List all Channel Members

groups:read (Both User and Bot Token)
  1. Retrieving the list of private channels of the connected workspace in order to send messages or manage users as a Bot or User.

  2. Reading the private channel information as a Bot or User for sending messages or managing users

  1. Send Message to Channel

  2. Send Message to User

  3. Send File to Channel

  4. Send Reply

  5. Invite Users to Channel

  6. Remove User from Channel

  7. List all Channels

  8. Get Channel Info

  9. List all Channel Members

im:read (Both User and Bot Token)
  1. Retrieving the list of IM conversations of the connected workspace in order to send messages as a Bot or User.

  2. Retrieving the list of IM conversations that the user is part of.

  1. List all Channels

  2. Get Channel Info

mpim:read (Both User and Bot Token)
  1. Retrieving the list of MPIM groups of the connected workspace in order to send messages as a Bot or User.

  2. Retrieving the list of MPIM conversations that the user is part of.

  1. List all Channels

  2. Get Channel Info

files:read (Bot token only)Retrieving the file info such as public URL and downloading important files such as quarterly results, from a URL via Slack message as a Bot or User Get File Info
files:write (Both User and Bot Token)

Notifying all the users of a user group regarding an important update; For instance, notifying as a Bot or User, the Quarterly Sales Results to the entire Sales / Marketing team group

Uploading a media file as a Slack message in a channel as a Bot or User

Send File to Channel
usergroups:read (User token only)Retrieve the list of users in a usergroup so as to update or add users as a Bot or UserList All User Groups
usergroups:write (User token only)
  1. Creating a user group for multiple channels as a Bot or User

  2. Adding users to an existing usergroup as a Bot or User whenever a new user is added to a channel

  3. Dynamically enable or disable the usergroup for temp channel whenever the temp channel is archived/unarchived.

  1. Create User Group

  2. Add Users to User Group

users:read (Both User and Bot Token)Retrieving the list of users of the connected workspace as a Bot or User in order to send messages
  1. List All Users

  2. Invite Users to Channel

  3. Remove User from Channel

  4. Send Message to User

users:read.email (Both User and Bot Token)Reading the user information such as name, email etc. as a Bot or User for sending notificationsGet User by Email
  • Prerequisites
  • Add the connection for Slack
  • Scopes/Permissions

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.