Mattermost credentials#
You can use these credentials to authenticate the following nodes:
Supported authentication methods#
- API access token
Related resources#
Refer to Mattermost's API documentation for more information about the service.
Using API access token#
To configure this credential, you'll need a Mattermost account and:
- A personal Access Token
- Your Mattermost Base URL.
To set it up:
-
In Mattermost, go to Profile > Security > Personal Access Tokens.
No Personal Access Tokens option
If you don't see the Personal Access Tokens option, refer to the troubleshooting steps in Enable personal access tokens below.
-
Select Create Token.
- Enter a Token description, like
n8n integration
. - Select Save.
- Copy the Token ID and enter it as the Access Token in your n8n credential.
- Enter your Mattermost URL as the Base URL.
- By default, n8n connects only if SSL certificate validation succeeds. To connect even if SSL certificate validation fails, turn on Ignore SSL Issues.
Refer to the Mattermost Personal access tokens documentation for more information.
Enable personal access tokens#
Not seeing the Personal Access Tokens option has two possible causes:
- Mattermost doesn't have the personal access tokens integration enabled.
- You're trying to generate a personal access token as a non-admin user who doesn't have permission to generate personal access tokens.
To identify the root cause and resolve it:
- Log in to Mattermost as an admin.
- Go to System Console > Integrations > Integration Management.
- Confirm that Enable personal access tokens is set to true. If it's not, change.
- Go to System Console > User Management > Users.
- Search for the user account you want to allow to generate personal access tokens.
- Select the Actions dropdown for the user and select Manage roles.
- Check the box for Allow this account to generate personal access tokens and Save.
Refer to the Mattermost Personal access tokens documentation for more information.