Setup Mattermost for Console
Users are dynamically created upon logging in to Mattermost, so you'll need to log in to Mattermost as the console-bot before proceeding.
Enable Personal Access Tokens for Admins:
- Log in to Mattermost with an admin-level account.
- The user will be prompted to create a team. This can be named/configured to the user's preference.
- Click the 9 dot icon in the top-left corner (left of the Mattermost logo).
- Click
System Console. - Click
Integration Managementin the left-hand panel. - Enable Personal Access Tokens:
True. - Click
Save. - Leave
System Consoleby clickingBack to <team name>.
Enable Admin for console-bot:
- Log in using a Mattermost admin-level account.
- Click the 9 dot icon in the top-left corner (left of the Mattermost logo).
- Click
System Console. - Navigate to
User Management->Users. - Find
console-bot, and in theActionscolumn, selectManage Rolesand set toSystem Admin. - Click
Save.
Create Personal Access Token:
- Log in to Mattermost as
console-bot. - Click the profile icon in the top-right corner.
- Click
Profile. - Click
Security. - Click
EditforPersonal Access Tokens. - Click
Create Token:- Token Description:
console-bot-admin-integration. - Click
Yes, Create.
- Token Description:
- Save
Access Tokenvalue.
console:
values:
backend:
mattermost:
enabled: "true"
host: "chat.<DOMAIN>" # this value can be omitted but is required when setting a custom subdomain for Mattermost.
accessToken: "<Mattermost Access Token Value>"
caution
Removing or altering permissions in Mattermost for console-bot after access tokens have been set could lead to unexpected issues.