Administrator Tasks

This document provides instructions for common administrator tasks, including some recommendations on tasks to prepare your Mattermost instance to onboard users.

Getting Started Tasks

  1. Once you’ve installed and deployed Mattermost, ensure all configuration settings are appropriately set under System Console > Environment including:
  • Web Server
  • Database
  • File Storage
  • SMTP
  • Push Notification Server

These settings can also be set in the config.json file. Please see our configuration settings documentation for a full listing of all configuration settings.

2. Adjust settings under System Console > Site Configuration to brand and customize how users will interact with the site. Be sure to update the Support Email and Help Link in Mattermost under System Console > Site Configuration > Customization to provide your users a resource for password resets or questions on their Mattermost account.

  • The Support Email is used on email notifications and during tutorial for users to ask support questions.
  • The Help Link is on the Mattermost login page, sign-up pages, and Main Menu and can be used to to link to your help desk ticketing system.

These settings can also be set in the config.json file. Please see our configuration settings documenation for a full listing of all configuration settings.

  1. Begin to onboard users by enabling account creation or by connecting an authentication service to assist with user provisioning.

If your organization requires more structure and project management artifacts for the implementation of Mattermost, please see our Enterprise roll out checklist.

Important Administration Notes

DO NOT manipulate the Mattermost database

  • In particular, DO NOT manually delete data from the database directly. Mattermost is designed as a continuous archive and cannot be supported after manual manipulation.
  • If you need to permanently delete a team or user, use the Command Line Tool.

Common Tasks

Creating System Admin account from the command line
  • If the System Admin leaves the organization or is otherwise unavailable, you can use the command line interface to assign the system_admin role to an existing user. In the /opt/mattermost directory, type sudo -u mattermost bin/mattermost roles system_admin {user-name}, where {user-name} is the username of the person with the new role. For more information about using the command line interface, see Command Line Tools.
  • The user needs to log out and log back in before the system_admin role is applied.
Migrating to AD/LDAP or SAML from email-based authentication
  • If you have Enterprise Edition, you can migrate from email authentication to Active Directory/LDAP or to SAML Single Sign-on. To set up Active Directory/LDAP, see Active Directory/LDAP Setup (E10/E20). To set up SAML Single Sign-on, see SAML Single-Sign-On (E20).
  • After the new authentication method is enabled, existing users cannot use the new method until they go to Account Settings > Security > Sign-in method and click Switch to using AD/LDAP or Switch to using SAML Single Sign-on. After they have switched, they can no longer use their email and password to sign in.
Deactivating a user
  • System Admins can go to System Console > Users for a list of all users on the server. The list can be searched and filtered to make finding the user easier. Click the user’s role and in the menu that opens, click Deactivate.
  • To preserve audit history, users are typically never deleted from the system. If permanently deleting a user is necessary (e.g. for the purposes of GDPR), a CLI tool can be used to do so.
  • Note that AD/LDAP user accounts cannot be deactivated from Mattermost; they must be deactivated from your Active Directory.
Checking for a valid license in Enterprise Edition without logging in
  • Open the log file mattermost.log. It’s usually in the mattermost/logs/ directory but might be elsewhere on your system. Find the last occurrence of a log entry that starts with the text [INFO] License key. If the license key is valid, the complete line should be similar to the following example:

    [2017/05/19 16:51:40 UTC] [INFO] License key valid unlocking enterprise features.
    

User Experience Optimizations

We highly recommend the following best practices, configuration options, and features for an optimal Mattermost user experience.

1. Upgrade your Mattermost Server

When you upgrade your Mattermost server frequently, your users can access new features, improved user experiences, bug fixes, security fixes, and guaranteed mobile app compatibility.

Mattermost releases updates monthly to Mattermost Team Edition and Mattermost Enterprise Edition. The Mattermost Changelog provides all information about changes in each version.

Upgrading your Mattermost server only takes a few minutes. See the Upgrade Guide for step-by-step instructions.

2. Install Plugins

You can enable plugins and integrations to connect your team’s workflows and toolsets into Mattermost. Plugins and integrations customize and extend the Mattermost platform.

Install and manage plugins

To enable and manage plugins, go to System Console > Plugins.

Next, install plugins with a single click from the Main Menu > Plugin Marketplace. See the Plugin Marketplace documentation for details.

Consider installing and enabling the following productivity plugins for your users:
  • Enable audio/video calling and screen sharing with Jitsi or Zoom.
  • Create polls with Matterpoll.
  • Share GIFs with GIF Commands.
  • Create and share memes with Memes.
  • Set personal reminders with Remind.
  • Create and share to do items with Todo.
  • Customize welcome messages for new users with WelcomeBot.

Explore all plugins and integrations available in the Mattermost Plugin Marketplace.

Enable and manage integrations

To enable integrations such as webhooks, slash commands, OAuth2.0, and bots, to go System Console > Integrations. More information on these integrations can be found here.

3. Enable Automatically Extended Sessions

Keep your desktop and mobile users logged in and extend user sessions automatically by setting System Console > Sessions > Extend session length with activity to true. See the Extend session length with activity configuration settings documentation for details.

4. Enable Full Content Push Notifications

Enable push notifications on mobile devices to deliver messages in real time by setting System Console > Push Notification Server > Enable Push Notifications to Use TPNS. See the Push notification server configuration settings documentation for details.

Enable full content push notifications, including the sender’s name, the channel name, and the message text, by setting System Console > Notifications > Push Notification Contents to Full message contents. See the Push notification contents configuration settings documentation for details.

Note

  • Mattermost Enterprise Edition E10 and E20 customers can enable HPNS that includes production-level uptime SLAs.
  • Mattermost Enterprise Edition E20 customers can enable ID-Only push notifications so push notification content is not passed through Apple Push Notification Service (APNS) or Google Firebase Cloud Messaging (FCM) before reaching the device. The ID-only push notification setting offers a high level of privacy while allowing team members to benefit from mobile push notifications.

5. Enable Custom Emoji

Emojis enable users to express concepts such as emotions and physical gestures in messages. Enable the emoji picker by setting System Console > Emoji > Enable Emoji Picker to true. See the Enable emoji picker configuration settings documentation for details.

Empower users to create and share their own custom emojis by setting System Console > Emoji > Enable Custom Emoji to true. See the Enable custom emoji configuration settings documentation for details.

6. Enable GIF Picker (Beta)

GIFs are animated images that can make messaging more fun and engaging. Enable users to access the Mattermost GIF picker from the message draft area by setting System Console > GIF (Beta) > Enable GIF Picker to true. See the Enable GIF picker configuration settings documentation for details.

7. Enable Link Previews

Link previews provide a visual glimpse of relevant content for links shared in messages. Enable link previews by setting System Console > Posts > Enable Link Previews to true. See the Enable link previews configuration settings documentation for details.

8. Enable Batched Email Notifications

Email notifications can be batched together so users don’t get overwhelmed with too many emails.

Enable email notifications first by setting System Console > Notifications > Enable Email Notifications to true. See the Enable email notifications configuration settings documentation for details. Note that email notifications require an SMTP email server to be configured.

Then, enable batched email notifications by setting System Console > Notifications > Enable Email Batching to true. See the Enable email batching configuration settings documentation for details. Note that email batching is not available if you are running your deployment in High Availability.

9. Enable Elasticsearch (E20)

Mattermost Enterprise Edition E20 customers can enable Elasticsearch for optimized search performance at enterprise-scale. Elasticsearch solves many known issues with full text database search, such as dots, dashes, and email addresses returning unexpected results.

Enable Elasticsearch by setting System Console > Elasticsearch > Enable Indexing to true. See the Elasticsearch configuration settings documentation for details. Enabling Elasticsearch requires setting up an Elasticsearch server.

10. Try Experimental Features

Mattermost often releases experimental features to get user feedback on new functionality and product enhancements. For example, new experimental sidebar features include custom, collapsible channel categories, unread filtering, and many more enhancements for managing channels in your sidebar.

Enable experimental sidebar features by enabling System Console > Experimental > Experimental Sidebar Features. See the Experimental sidebar features (Experimental) configuration settings documentation for details.