2021-03-08 18:12:59 +05:30
---
type: reference, howto
stage: Manage
group: Import
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
---
2021-03-11 19:13:27 +05:30
# Import groups from another instance of GitLab **(FREE)**
2021-03-08 18:12:59 +05:30
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/249160) in GitLab 13.7.
2021-06-08 01:23:25 +05:30
> - [Deployed behind a feature flag](../../feature_flags.md), disabled by default.
> - Enabled on GitLab.com.
2021-03-08 18:12:59 +05:30
2021-10-27 15:23:28 +05:30
NOTE:
The importer migrates **only** the group data listed on this page. To leave feedback on this
feature, see [this issue ](https://gitlab.com/gitlab-org/gitlab/-/issues/284495 ).
2021-03-08 18:12:59 +05:30
2021-03-11 19:13:27 +05:30
Using GitLab Group Migration, you can migrate existing top-level groups from GitLab.com or a self-managed instance. Groups can be migrated to a target instance, as a top-level group, or as a subgroup of any existing top-level group.
2021-03-08 18:12:59 +05:30
The following resources are migrated to the target instance:
2021-04-17 20:07:23 +05:30
- Groups ([Introduced in 13.7](https://gitlab.com/groups/gitlab-org/-/epics/4374))
2021-03-08 18:12:59 +05:30
- description
- attributes
- subgroups
2021-09-30 23:02:18 +05:30
- avatar ([Introduced in 14.0](https://gitlab.com/gitlab-org/gitlab/-/issues/322904))
2021-04-17 20:07:23 +05:30
- Group Labels ([Introduced in 13.9](https://gitlab.com/gitlab-org/gitlab/-/issues/292429))
- title
- description
- color
- created_at ([Introduced in 13.10](https://gitlab.com/gitlab-org/gitlab/-/issues/300007))
- updated_at ([Introduced in 13.10](https://gitlab.com/gitlab-org/gitlab/-/issues/300007))
- Members ([Introduced in 13.9](https://gitlab.com/gitlab-org/gitlab/-/issues/299415))
Group members are associated with the imported group if:
- The user already exists in the target GitLab instance and
- The user has a public email in the source GitLab instance that matches a
confirmed email in the target GitLab instance
- Epics ([Introduced in 13.7](https://gitlab.com/gitlab-org/gitlab/-/issues/250281))
2021-03-08 18:12:59 +05:30
- title
- description
- state (open / closed)
- start date
- due date
- epic order on boards
- confidentiality
2021-04-17 20:07:23 +05:30
- labels ([Introduced in 13.9](https://gitlab.com/gitlab-org/gitlab/-/issues/297460))
- author ([Introduced in 13.9](https://gitlab.com/gitlab-org/gitlab/-/issues/298745))
- parent epic ([Introduced in 13.9](https://gitlab.com/gitlab-org/gitlab/-/issues/297459))
- emoji award ([Introduced in 13.9](https://gitlab.com/gitlab-org/gitlab/-/issues/297466))
- events ([Introduced in 13.10](https://gitlab.com/gitlab-org/gitlab/-/issues/297465))
- Milestones ([Introduced in 13.10](https://gitlab.com/gitlab-org/gitlab/-/issues/292427))
- title
- description
- state (active / closed)
- start date
- due date
- created at
- updated at
2021-04-29 21:17:54 +05:30
- iid ([Introduced in 13.11](https://gitlab.com/gitlab-org/gitlab/-/issues/326157))
2021-04-17 20:07:23 +05:30
- Iterations ([Introduced in 13.10](https://gitlab.com/gitlab-org/gitlab/-/issues/292428))
- iid
- title
- description
- state (upcoming / started / closed)
- start date
- due date
- created at
- updated at
2021-04-29 21:17:54 +05:30
- Badges ([Introduced in 13.11](https://gitlab.com/gitlab-org/gitlab/-/issues/292431))
- name
- link URL
- image URL
2021-09-04 01:27:46 +05:30
- Boards
- Board Lists
2021-03-08 18:12:59 +05:30
Any other items are **not** migrated.
## Enable or disable GitLab Group Migration
2021-11-11 11:23:49 +05:30
GitLab Migration is deployed behind a feature flag that is **enabled by default** .
2021-03-08 18:12:59 +05:30
[GitLab administrators with access to the GitLab Rails console ](../../../administration/feature_flags.md ) can enable it.
To enable it:
```ruby
Feature.enable(:bulk_import)
```
To disable it:
```ruby
Feature.disable(:bulk_import)
```
## Import your groups into GitLab
Before you begin, ensure that the target instance of GitLab can communicate with the source
over HTTPS (HTTP is not supported).
NOTE:
This might involve reconfiguring your firewall to prevent blocking connection on the side of self-managed instance.
### Connect to the remote GitLab instance
1. Navigate to the New Group page, either via the `+` button in the top navigation bar, or the **New subgroup** button
on an existing group's page.
![Navigation paths to create a new group ](img/new_group_navigation_v13_8.png )
2021-09-04 01:27:46 +05:30
1. On the New Group page, select **Import group** .
2021-03-08 18:12:59 +05:30
2021-09-30 23:02:18 +05:30
![Fill in import details ](img/import_panel_v14_1.png )
2021-03-08 18:12:59 +05:30
1. Fill in source URL of your GitLab.
1. Fill in [personal access token ](../../../user/profile/personal_access_tokens.md ) for remote GitLab instance.
1. Click "Connect instance".
### Selecting which groups to import
2021-09-04 01:27:46 +05:30
After you have authorized access to the GitLab instance, you are redirected to the GitLab Group
2021-09-30 23:02:18 +05:30
Migration importer page. Listed are the remote GitLab groups to which you have the Owner role.
2021-03-08 18:12:59 +05:30
1. By default, the proposed group namespaces match the names as they exist in remote instance, but based on your permissions, you can choose to edit these names before you proceed to import any of them.
1. Select the **Import** button next to any number of groups.
2021-09-30 23:02:18 +05:30
1. The **Status** column shows the import status of each group. You can choose to leave the page open and it updates in real-time.
2021-03-08 18:12:59 +05:30
1. Once a group has been imported, click its GitLab path to open its GitLab URL.
2021-09-30 23:02:18 +05:30
![Group Importer page ](img/bulk_imports_v14_1.png )