Mattermost ONLYOFFICE integration plugin
- The following formats are available for viewing only: XLS, CSV, XLSM, XLT, XLTM, ODS, FODS, OTS, PPS, PPSX, PPSM, PPT, PPTM, POT, POTX, POTM, ODP, FODP, OTP, DOC, DOCM, DOT, DOTX, DOTM, ODT, FODT, OTT, RTF.
- The plugin will create a new Open in ONLYOFFICE menu option within the document library for office documents. This allows multiple users to collaborate in real time and save back those changes to Mattermost.
Installing ONLYOFFICE Docs
You need an instance of ONLYOFFICE Docs (Document Server) that is resolvable and connectable both from Mattermost and any end clients. If that is not the case, use the official ONLYOFFICE Docs documentation page. ONLYOFFICE Docs must also be able to POST to Mattermost directly.
ONLYOFFICE Docs and Mattermost can be installed either on different computers, or on the same machine. If you use one machine, set up a custom port for Document Server.
The easiest way to install an instance of ONLYOFFICE Docs is to use .
To start using ONLYOFFICE Docs with Mattermost, follow these steps:
- Clone the .
- Go to the project root.
Install the dependencies:
npm install —legacy-peer-deps Please note that you need to have Node.js v.15.14.0 installed on your machine to build the plugin.
Run the following command:
- Choose the compiled plugin from your dist folder and press Upload.
Configuring Mattermost ONLYOFFICE integration plugin
- Enable Plugin. Enable the Mattermost ONLYOFFICE integration plugin by setting this parameter to true.
Document Editing Service address. To connect ONLYOFFICE Docs, enter the following address:
where documentserver is the name of the server and port is the port number with ONLYOFFICE Docs installed. The address must be accessible from the user browser and from the Mattermost server. The Mattermost server address must also be accessible from ONLYOFFICE Docs for correct work.
Secret key. Starting from version 7.2, JWT is enabled by default and the secret key is generated automatically to restrict the access to ONLYOFFICE Docs and for security reasons and data integrity. Specify your own secret key in the Mattermost plugin configuration. In the ONLYOFFICE Docs config file, specify the same secret key and enable the validation.
- JWT Header. If JWT protection is enabled, it is necessary to specify a custom header name since the Mattermost security policy blocks external Authorization headers. This header should be specified in the ONLYOFFICE Docs signature settings as well. Further information about signature can be found .
- JWT Prefix. Specify the ONLYOFFICE Docs prefix.
Users are able to open files sent in personal and group Mattermost chats for viewing and co-editing.
When files are sent in the chat message, the following actions are available in the file context menu by clicking the ⋮ symbol:
- Open file in ONLYOFFICE - for the recipient of the message.
When clicking on the Open file in ONLYOFFICE button, the corresponding ONLYOFFICE editor opens in the same window.
The author of the message with attached documents is able to change access rights to the file via the context menu using the Change access rights option. This action is available both in personal and group chats.
ONLYOFFICE bot sends notifications about changes in the document specifying the name of the user who made those changes.
How it works
The ONLYOFFICE integration follows the API documented here.