- Create a group
- Transfer projects from the personal namespace to the group
- Rename the original username
- Rename the new group namespace to the original username
Tutorial: Convert a personal namespace into a group
If you’ve started out on GitLab with a personal namespace, but now find that you’ve outgrown its capabilities and its limitations hinder the collaboration on your projects, you might want to switch to a group namespace instead. A group namespace allows you to create multiple subgroups, and manage their members and permissions.
You don’t have to start from scratch - you can create a new group and move your existing projects to the group to get the added benefits. To find out how, see Tutorial: Move your personal project to a group.
But you can go one step further and convert your personal namespace into a group namespace,
so you get to keep the existing username and URL. For example, if your username is
you can continue using the
https://gitlab.example.com/alex URL for your group.
This tutorial shows you how to convert your personal namespace into a group namespace using the following steps:
- Create a group.
- Transfer projects from the personal namespace to the group.
- Rename the original username.
- Rename the new group namespace to the original username.
For example, if your username for a personal namespace is
alex, first create a group namespace named
Then, move all projects from the
alex to the
alex-group namespace. Finally,
alex namespace to
alex-group namespace to the now available
Create a group
- On the top bar, select Main menu > Groups > View all groups.
- On the right of the page, select New group.
- In Group name, enter a name for the group.
- In Group URL, enter a path for the group, which is used as the namespace. Don’t worry about the actual path, this is only temporary. You’ll change this URL to the username of the personal namespace in the final step.
- Choose the visibility level.
- Optional. Fill in information to personalize your experience.
- Select Create group.
Transfer projects from the personal namespace to the group
Next, you must transfer your projects from the personal namespace to the new group. You can transfer only one project at a time, so if you want to transfer multiple projects, you must perform the steps below for each project.
Before you start the transfer process, make sure you:
- Have the Owner role for the project.
- Remove container images. You can’t transfer a project that contains container images.
- Remove npm packages. You can’t update the root namespace of a project that contains npm packages.
To transfer a project to a group:
- On the top bar, select Main menu > Projects and find your project.
- On the left sidebar, select Settings > General.
- Expand Advanced.
- Under Transfer project, choose the group to transfer the project to.
- Select Transfer project.
- Enter the project’s name and select Confirm.
Rename the original username
Next, rename the original username of the personal namespace, so that the username becomes available for the new group namespace. You can keep on using the personal namespace for other personal projects, or delete that user account
From the moment you rename the personal namespace, the username becomes available, so it’s possible that someone else registers an account with it. To avoid this, you should rename the new group as soon as possible.
- On the top bar, in the top-right corner, select your avatar.
- Select Edit profile.
- On the left sidebar, select Account.
- In the Change username section, enter a new username as the path.
- Select Update username.
Rename the new group namespace to the original username
Finally, rename the new group’s URL to the username of the original personal namespace.
To change your group path (group URL):
- On the top bar, select Main menu > Groups and find your group.
- On the left sidebar, select Settings > General page.
- Expand the Advanced section.
- Under Change group URL, enter the user’s original username.
- Select Change group URL.
That’s it! You have now converted a personal namespace into a group, which opens up new possibilities of working on projects and collaborating with more members.