2018-12-18 21:07:56 +01:00
|
|
|
# Import from Slack
|
2017-01-31 09:17:05 +01:00
|
|
|
|
2022-11-02 03:45:05 +01:00
|
|
|
{!import-workspace-to-zulip.md!}
|
2018-07-25 04:22:41 +02:00
|
|
|
|
2022-08-24 01:19:37 +02:00
|
|
|
## Import process overview
|
2018-07-25 04:22:41 +02:00
|
|
|
|
2022-08-24 01:19:37 +02:00
|
|
|
To import your Slack organization into Zulip, you will need to take the
|
|
|
|
following steps, which are described in more detail below:
|
2018-04-18 21:27:49 +02:00
|
|
|
|
2022-08-24 01:19:37 +02:00
|
|
|
{start_tabs}
|
|
|
|
|
2022-10-28 23:42:06 +02:00
|
|
|
1. [Export your Slack data](#export-your-slack-data).
|
2022-08-24 01:19:37 +02:00
|
|
|
|
2022-10-28 23:42:06 +02:00
|
|
|
2. [Import your Slack data into Zulip](#import-your-data-into-zulip).
|
2022-08-24 01:19:37 +02:00
|
|
|
|
2022-10-28 23:42:06 +02:00
|
|
|
3. [Clean up](#clean-up-after-the-slack-export) after the Slack export.
|
2022-08-24 01:19:37 +02:00
|
|
|
|
2022-10-28 23:42:06 +02:00
|
|
|
4. [Get your organization started with Zulip](#get-your-organization-started-with-zulip)!
|
2022-08-24 01:19:37 +02:00
|
|
|
|
|
|
|
{end_tabs}
|
2021-09-10 00:44:29 +02:00
|
|
|
|
2022-08-24 01:19:37 +02:00
|
|
|
## Import your organization from Slack into Zulip
|
2019-04-03 00:39:59 +02:00
|
|
|
|
2022-08-24 01:19:37 +02:00
|
|
|
### Export your Slack data
|
|
|
|
|
|
|
|
Slack's [data export
|
|
|
|
service](https://slack.com/services/export) allows you to
|
|
|
|
export all public channel messages, **including older messages that may no
|
|
|
|
longer be searchable** under your Slack plan.
|
2020-05-11 21:11:03 +02:00
|
|
|
|
2022-08-24 01:19:37 +02:00
|
|
|
Unfortunately, Slack [only
|
|
|
|
allows](https://slack.com/help/articles/201658943-Export-your-workspace-data)
|
|
|
|
workspaces that are on the **Business+** or **Enterprise Grid** plans
|
|
|
|
to export private channels and direct messages. Slack's support has
|
|
|
|
confirmed this policy as of August 2022.
|
2019-04-03 00:39:59 +02:00
|
|
|
|
2022-08-24 01:19:37 +02:00
|
|
|
Owners of **Business+** or **Enterprise Grid** workspaces can [request
|
|
|
|
special
|
|
|
|
access](https://slack.com/help/articles/204897248-Guide-to-Slack-import-and-export-tools#options-by-plan)
|
2023-02-10 08:04:36 +01:00
|
|
|
in order to export direct message data.
|
2020-01-06 20:20:29 +01:00
|
|
|
|
2020-05-11 21:11:03 +02:00
|
|
|
{start_tabs}
|
|
|
|
|
2022-08-24 01:19:37 +02:00
|
|
|
1. Make sure that you are an owner or admin of your Slack
|
|
|
|
workspace. If you are one, the Slack web application will display
|
|
|
|
that in your profile, in a banner covering the bottom of your
|
|
|
|
avatar.
|
|
|
|
|
|
|
|
2. [Export your Slack message history](https://my.slack.com/services/export).
|
|
|
|
You should be able to download a `zip` file with your data a few minutes
|
|
|
|
after you start the export process.
|
|
|
|
|
|
|
|
3. You will also need to export your workspace's user data and custom emoji.
|
|
|
|
To do so, start
|
|
|
|
by [creating a new Slack app](https://api.slack.com/apps). Choose the "From
|
|
|
|
scratch" creation option.
|
2018-04-05 01:15:22 +02:00
|
|
|
|
2022-08-24 01:19:37 +02:00
|
|
|
4. [Create a
|
2023-03-13 23:46:12 +01:00
|
|
|
bot user](https://api.slack.com/authentication/basics#scopes),
|
2022-08-24 01:19:37 +02:00
|
|
|
following the instructions to add the following OAuth scopes to your bot:
|
2020-05-11 21:11:03 +02:00
|
|
|
- `emoji:read`
|
|
|
|
- `users:read`
|
|
|
|
- `users:read.email`
|
|
|
|
- `team:read`
|
2018-04-05 01:15:22 +02:00
|
|
|
|
2022-08-24 01:19:37 +02:00
|
|
|
5. [Install your new app](https://api.slack.com/authentication/basics#installing)
|
|
|
|
to your Slack workspace.
|
|
|
|
|
|
|
|
6. You will immediately see a **Bot User OAuth Token**, which is a long
|
|
|
|
string of numbers and characters starting with `xoxb-`. Copy this token. You
|
|
|
|
will use it to download user and emoji data from your Slack workspace.
|
2018-04-05 01:15:22 +02:00
|
|
|
|
2022-09-02 19:16:18 +02:00
|
|
|
!!! warn ""
|
2022-10-28 23:42:06 +02:00
|
|
|
|
2022-09-02 19:16:18 +02:00
|
|
|
You may also come across a token starting with `xoxe-`. This token cannot
|
|
|
|
be used for the Slack export process.
|
|
|
|
|
2019-04-03 00:39:59 +02:00
|
|
|
{end_tabs}
|
|
|
|
|
2022-08-24 01:19:37 +02:00
|
|
|
### Import your data into Zulip
|
|
|
|
|
2022-11-02 03:45:05 +01:00
|
|
|
{!import-your-data-into-zulip.md!}
|
2022-08-24 01:19:37 +02:00
|
|
|
|
|
|
|
{start_tabs}
|
|
|
|
|
|
|
|
{tab|zulip-cloud}
|
|
|
|
|
2022-11-02 03:45:05 +01:00
|
|
|
{!import-into-a-zulip-cloud-organization.md!}
|
2020-05-11 21:11:03 +02:00
|
|
|
|
2022-10-28 23:42:06 +02:00
|
|
|
1. Your Slack **Bot User OAuth Token**, which will be a long
|
|
|
|
string of numbers and characters starting with `xoxb-`.
|
2020-05-11 21:11:03 +02:00
|
|
|
|
2022-11-02 03:45:05 +01:00
|
|
|
{!import-zulip-cloud-organization-warning.md!}
|
2018-07-25 00:20:19 +02:00
|
|
|
|
2022-08-24 01:19:37 +02:00
|
|
|
{tab|self-hosting}
|
2018-07-25 00:20:19 +02:00
|
|
|
|
2022-11-02 03:45:05 +01:00
|
|
|
{!import-into-a-self-hosted-zulip-server.md!}
|
2022-08-24 01:19:37 +02:00
|
|
|
|
|
|
|
1. To import into an organization hosted on the root domain
|
2022-10-28 23:42:06 +02:00
|
|
|
(`EXTERNAL_HOST`) of the Zulip installation, run the following
|
|
|
|
commands, replacing `<token>` with your Slack **Bot User OAuth Token**.
|
2022-08-24 01:19:37 +02:00
|
|
|
|
2022-11-02 03:45:05 +01:00
|
|
|
{!import-self-hosted-server-tips.md!}
|
2022-08-24 01:19:37 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
cd /home/zulip/deployments/current
|
|
|
|
./scripts/stop-server
|
|
|
|
./manage.py convert_slack_data /tmp/slack_data.zip --token <token> --output /tmp/converted_slack_data
|
|
|
|
./manage.py import '' /tmp/converted_slack_data
|
|
|
|
./scripts/start-server
|
|
|
|
```
|
|
|
|
|
|
|
|
Alternatively, to import into a custom subdomain, run:
|
|
|
|
|
|
|
|
```
|
|
|
|
cd /home/zulip/deployments/current
|
|
|
|
./scripts/stop-server
|
|
|
|
./manage.py convert_slack_data /tmp/slack_data.zip --token <token> --output /tmp/converted_slack_data
|
|
|
|
./manage.py import <subdomain> /tmp/converted_slack_data
|
|
|
|
./scripts/start-server
|
|
|
|
```
|
|
|
|
|
|
|
|
1. Follow [step 4](https://zulip.readthedocs.io/en/stable/production/install.html#step-4-configure-and-use)
|
|
|
|
of the guide for [installing a new Zulip
|
|
|
|
server](https://zulip.readthedocs.io/en/stable/production/install.html).
|
2018-04-05 01:15:22 +02:00
|
|
|
|
2022-08-24 01:19:37 +02:00
|
|
|
{end_tabs}
|
|
|
|
|
|
|
|
#### Import details
|
|
|
|
|
|
|
|
Whether you are using Zulip Cloud or self-hosting Zulip, here are few notes to keep
|
|
|
|
in mind about the import process:
|
|
|
|
|
|
|
|
- Slack does not export workspace settings, so you will need to [configure
|
|
|
|
the settings for your Zulip organization](/help/customize-organization-settings).
|
|
|
|
This includes settings like [email
|
2023-02-07 06:29:11 +01:00
|
|
|
visibility](/help/configure-email-visibility),
|
2023-02-09 05:17:34 +01:00
|
|
|
[message editing permissions](/help/restrict-message-editing-and-deletion),
|
2022-08-24 01:19:37 +02:00
|
|
|
and [how users can join your organization](/help/restrict-account-creation).
|
|
|
|
|
|
|
|
- Slack does not export user settings, so users in your organization may want to
|
|
|
|
[customize their account settings](/help/getting-started-with-zulip).
|
|
|
|
|
|
|
|
- Slack's user roles are mapped to Zulip's [user
|
|
|
|
roles](/help/roles-and-permissions) in the following way:
|
|
|
|
|
|
|
|
| Slack role | Zulip role |
|
|
|
|
|-------------------------|---------------|
|
|
|
|
| Workspace Primary Owner | Owner |
|
|
|
|
| Workspace Owner | Owner |
|
|
|
|
| Workspace Admin | Administrator |
|
|
|
|
| Member | Member |
|
|
|
|
| Single Channel Guest | Guest |
|
|
|
|
| Multi Channel Guest | Guest |
|
|
|
|
| Channel creator | none |
|
|
|
|
|
|
|
|
- Messages in threads are imported, but they are not explicitly marked as
|
|
|
|
being in a thread.
|
|
|
|
|
|
|
|
- Message edit history and `@user joined #channel_name` messages are not imported.
|
|
|
|
|
|
|
|
## Clean up after the Slack export
|
|
|
|
|
|
|
|
Once your organization has been successfully imported in to Zulip, you should
|
|
|
|
delete [the Slack app](https://api.slack.com/apps) that you created in order to
|
|
|
|
[export your Slack data](#export-your-slack-data). This will prevent the OAuth
|
|
|
|
token from being used to access your Slack workspace in the future.
|
|
|
|
|
|
|
|
## Get your organization started with Zulip
|
|
|
|
|
2022-11-02 03:45:05 +01:00
|
|
|
{!import-get-your-organization-started.md!}
|
2022-08-24 01:19:37 +02:00
|
|
|
|
|
|
|
!!! tip ""
|
2022-10-28 23:42:06 +02:00
|
|
|
|
2022-11-02 03:45:05 +01:00
|
|
|
Zulip's [Slack-compatible incoming webhook](/integrations/doc/slack_incoming)
|
|
|
|
makes it easy to migrate integrations.
|
2018-04-05 01:15:22 +02:00
|
|
|
|
2022-11-02 03:45:05 +01:00
|
|
|
## Decide how users will log in
|
2021-01-06 07:42:08 +01:00
|
|
|
|
2022-11-02 03:45:05 +01:00
|
|
|
{!import-how-users-will-log-in.md!}
|
2020-05-09 20:22:11 +02:00
|
|
|
|
|
|
|
## Related articles
|
|
|
|
|
2022-08-24 01:19:37 +02:00
|
|
|
* [Choosing between Zulip Cloud and self-hosting](/help/zulip-cloud-or-self-hosting)
|
|
|
|
* [Setting up your organization](/help/getting-your-organization-started-with-zulip)
|
|
|
|
* [Slack-compatible incoming webhook](/integrations/doc/slack_incoming)
|
|
|
|
* [Getting started with Zulip](/help/getting-started-with-zulip)
|