Complete the following steps to add your Slack API credentials to Oomnitza. You can use your API credentials to run the last login user integration.
Warning
A workspace must be on a paid plan to use this method, otherwise, a paid-only error is thrown when running the integration.
Procedure
To set up API authentication in Slack, complete the following steps:
- Go to https://api.Slack.com/apps.
- Click Create an App.
- Select From scratch.
- Enter a name and select your workspace.
- Click Create App. You will be brought to the Basic Information page.
- Select the Permissions box on the Basic Information page. Alternatively, select OAuth & Permissions in the navigation sidebar.
- In the Redirect URLs section, click Add New Redirect URL.
- Enter
https://generic-oauth2-proxy.oomnitza.com/oauth2/redirect_url
as the redirect URL. - Save the URL and scroll down to the Scopes section.
- Add the following User Token Scopes:
admin
. The scope must be installed by an admin or Owner of an Enterprise Grid Slack subscription. - Install the app to an individual workspace, NOT the entire organization. Refer to step 3 in the Slack API Documentation for instructions.
Note
Be mindful of where the app has been installed. Installing the app at an Organization level may prevent Oomnitza's Slack integration from properly accessing the necessary Workspace level data. If you've set up your app and confirmed the correct scopes, but the Slack Integration returns an empty response, you may need to recreate the app and install it solely to a Workspace, not an Organization.
Results
To retrieve your token, navigate to Features > OAuth & permissions > OAuth Tokens for Your Workspace. Your user token should start withxoxp
Return to Oomnitza with your token and complete the following steps:
- In Oomnitza, click Configuration > Security > Credentials.
- Click Add new credential (+).
- Search for the Slack User Load - Last Login integration, and then click the forward button > to select the integration.
- Enter "Bearer" followed by a space and the API Key. For example,
Bearer aefgd-adw3n-jknadd78l1kjndc
. - Click Create.
Integration not in the list? Click Advanced Mode and complete these steps:
- Add the information details. Enter a descriptive name for the credentials such as Slack Last Login (API Key), to distinguish it from the OAuth credentials.
- Click the AUTHORIZATION tab.
- Ensure that API Key is selected as the Authorization type.
- Ensure that the Token Name is Authorization
- Enter "Bearer" followed by a space and the API Key. For example,
Bearer aefgd-adw3n-jknadd78l1kjndc
. - Ensure that Add to Header is selected.
- Save your changes
Next steps
Now that you have added your API credentials, you can run the Slack last login user integration.
Comments
0 comments
Please sign in to leave a comment.