-
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 installor$ yarn install -
Run tests
$ npm test
Modify the values in context/config.js for the source, target
Some contraints to be aware of:
usernamemust be all lowercase (no capital letters)emailmust 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-mmcontainer (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