Slack Generic OAuth2 User Token Account

In this article


Use this account type to connect Slack Snaps with data sources that use Slack Generic OAuth2 authentication, and then to perform the operations that Slack allows for your User Token account.



For ease and convenience of working with Slack users and teams, do not use this account type to create a Bot Token Account.

Known Issues


Account Settings

To create your Slack Generic OAuth2 account in SnapLogic, you must create an application as per the application provider's instructions in Start building Slack apps to generate and supply Client IDClient secretOAuth2 endpoint, and OAuth2 token in the settings below and click Authorize. SnapLogic sends your account details to the OAuth2 endpoint specified and populates the Access tokenRefresh token, and Access token expiration fields based on the details received from the endpoint.

ParameterData TypeDescriptionDefault ValueExample 



Required. Enter a unique label for the account.



Client ID


RequiredEnter the client ID associated with your Slack application. You can create the client ID as advised by your application provider.



Client secret


Enter the client secret associated with your account. You can create the client secret as advised by your application provider.



Access token


Auto-generated after authorization. The access token associated with the Slack application is used to make API requests on behalf of the user associated with the client ID.


Refresh token

StringAuto-generated after authorization. The refresh token retrieval for the application is specified when setting up the account for the endpoint. There, the OAuth2 flow is executed and the resulting refresh token is stored in this field. If the refresh token is stored, then the access token is refreshed automatically before it expires.N/AN/A

Access token expiration

IntegerAuto-generated after authorization. The access token expiration value in Epoch time.N/AN/A

Header authenticated

Check box

Enable this if endpoint uses bearer header authentication.

Not selectedSelected

OAuth2 Endpoint


RequiredEnter the OAuth2 endpoint authorization URL to authorize the application.

OAuth2 Token


Required. Enter the Token endpoint to get the access token.

Token endpoint config

Use this field set to configure token endpoint parameters as necessary for the account.

This field set comprises the following fields:

  • Token endpoint parameter
  • Token endpoint parameter value

Specify each parameter in a separate row. Click  to add a new row.

Token endpoint parameter


Provide the name for the token endpoint parameter.


Token endpoint parameter value


Provide the value for the parameter.

Auth endpoint config

Use this field set to assign scopes for the OAuth2 Authentication endpoint for the user account. We recommend that you define at least one scope entry in this field set. This field set comprises the following fields: 

  • Authentication parameter
  • Authentication parameter value

Specify each parameter in a separate row. Click  to add a new row.

Authentication parameter


Provide the name for an authentication parameter.N/Auser_scope

Authentication parameter value


Provide the value for the parameter, typically at least one User scope.  See the Scope and Permissions article in Slack API documentation for the complete list.


Auto-refresh token

Check box

Do not select this check box as Slack (bot/user) tokens do not expire, and hence, need not be refreshed.

Access Tokens

If you have an Enterprise Admin account, you can set an expiry duration for your app's user token. 

See Revoke All OAuth Tokens to know about revoking all your OAuth tokens, if need be.

Not selectedNot selected

Click this button to acquire the required permissions for this account from the Slack app, when creating an account.

For existing accounts, you can click this button to re-acquire the permissions (Access token, Refresh token and Access token expirationto ensure that the account works as expected. This action does not require or result in any changes to the Access Token that is already generated.


Configuring Redirect URLs for your app

While creating the Slack app, you must configure a Redirect (callback) URL for Slack to verify and authorize the communication between the app and your SnapLogic environment.

  1. Open<app_ID>/oauth? in your browser, where <app_ID> is the 11-character alphanumeric identifier (starting with 'A') for your Slack app.
    For example, You must log in to the site if you do not have a valid session running beforehand.

  2. In the left navigation, navigate to Features > OAuth & Permissions, and then scroll down to the Redirect URLs section.

  3. Click Add New Redirect URL.

  4. Enter the redirect URL in the following format: https://<SnapLogic_pod_name>/api/1/rest/admin/oauth2callback/slack, where <SnapLogic_pod_name> corresponds to the domain of your SnapLogic environment such as

    Slack app with REST Snap Pack

    If you intend to use your Slack app with the REST Snap Pack, add the Redirect URL: https://<SnapLogic_pod_name>/api/1/rest/admin/oauth2callback/rest in addition to the slack Redirect URL that you added in Step 4.

  5. Click Add, and click Save URLs.

Revoke All OAuth Tokens

You can revoke all the OAuth tokens that you generated for your app if you want to revoke the various access permissions provided to your app's users.

  1. Open<YOURAPPID>/oauth? in your browser, or select OAuth & Permissions from your app's Features section from the left navigation.

  2. Scroll down to the Revoke All OAuth Tokens section, and click Revoke Tokens.
    This revokes all the OAuth tokens from your app. You must repeat the Token Generation process if you want to generate new tokens.


Authentication failedYou have entered an incorrect Client ID or Client secret.Verify whether you have supplied the correct and valid Client ID and Client secret for the account and assigned the required access privileges to the application.
Error in Authorization: Something went wrong when authorizing this app. Invalid client_id parameterYou have entered an incorrect Client ID.Verify the Client ID entered for the account and try authorizing the app again.

Snap Pack History

 Click here to expand...


Snap Pack Version 




Enhanced the Slack - Send Message Snap with User Emails option for the Target Type dropdown list to send messages on Slack app using the user’s email.



Upgraded with the latest SnapLogic Platform release.
4.27main12833StableUpgraded with the latest SnapLogic Platform release.
4.26main11181 LatestUpgraded with the latest SnapLogic Platform release.
4.25 Patch425patches10994Latest

Improved the error messages in the Channel Operations Snap where the Snap fails with Null Pointer Exception when the account reference provided is invalid.

4.25main9554StableNo updates made.
4.24main8556StableNo updates made.




Initial release of the Snap Pack with the following Snaps and Accounts:

See Also