Edit the files .env
and user-mapping.json
to your needs.
Then call
php import.php
In the user-mapping.json
you have to write all the Rocket.Chat and Space usernames. The key is the Rocket.Chat
username, value the Space username.
{
"john-doe": "John.Doe",
"jane.doe": "Jane"
}
You have to write the credentials into the .env file so the collector/importer can connect to Rocket.Chat/Space.
ROCKET_CHAT_URL=https://chat.example.com
ROCKET_CHAT_USER=user@example.com
ROCKET_CHAT_PASSWORD=mySecretPassword
SPACE_URL=https://example.jetbrains.space
SPACE_CLIENT_ID=46511156-4651
SPACE_CLIENT_SECRET=561fsef156ht651cbf
Sometimes space seems to be too slow for this import to grant permissions after creating channels so maybe this import will be stopped. In the terminal you can see the channel name and maybe the current import index. So just restart the import with parameters:
php import.php the-shown-channel-name the-maybe-shown-index