-
Install Node.js Version 18.15.0 LTS or greater
-
Clone this repo
$ git clone https://github.com/Brightscout/mattermost-import-csv
-
Install dependencies
$ cd mattermost-import-csv
$ npm install
or$ yarn install
-
Run tests
$ npm test
Modify the values in context/config.js
for the source, target
Some contraints to be aware of:
username
must be all lowercase (no capital letters)email
must be all lowercase (no capital letters) [I think]
-
Execute the converter
$ npm start
-
Inspect the output file,
target.json
, or whatever you set as the target filename. Ensure the results are as expected.
- Run the Mattermost bulk loading command as explained here
- get the
import.json
(or whatever you name it) file to the RiffEdu instance in the ~/tmp directory - find the container id of the
edu-stk_edu-mm
container (e.g. 78119bd4328b)
docker cp tmp/import.json 78119bd4328b:/home/mmuser/
docker exec -it 78119bd4328b bash
cd riffedu
bin/mattermost import bulk ~/import.json --validate
bin/mattermost import bulk ~/import.json --apply
exit
Made with ♥ by Brightscout