zulip/templates/zerver/help/import-users-and-channels-f...

1.6 KiB

Import users and channels from Slack

{!follow-steps.md!} import users and channels from Slack to Zulip.

!!! warn "" Note: Please ensure that you have admin rights before importing users and channels from Slack.

  1. Generate a Slack API token using Slack's test token generator to import all of the necessary data.

{!go-to-the.md!} Your Account {!settings.md!}

  1. Click on the Show/change your API key button.

  2. Upon clicking the Show/change your API key button, you will be asked to confirm your identity by entering your password in the Current password field.

  3. Click the Get API Key button and copy the generated API Key.

  4. Fill all of the settings in api/integrations/slack/zulip_slack_config.py:

    • SLACK_TOKEN - the token from point number 1.

    • ZULIP_USER - the e-mail of the user (the user that API key was generated for).

    • ZULIP_KEY - the API key from point number 4.

    • ZULIP_SITE - the Zulip API server URI.

  5. Install the slacker dependency using the command pip install slacker

  6. Finally, run the script in your local Zulip directory using the command python api/integrations/slack/zulip_slack.py

Importing users from a different organization

If the users are not from the same organization, you should change your organization settings accordingly.

{!go-to-the.md!} Organization settings {!admin.md!}

  1. Disable the New users restricted to the following domains option.