GitLab Documentation

Groups

With GitLab Groups you can assemble related projects together and grant members access to several projects at once.

Groups can also be nested in subgroups.

Find your groups by expanding the left menu and clicking Groups:

GitLab Groups

The Groups page displays all groups you are a member of, how many projects it holds, how many members it has, the group visibility, and, if you have enough permissions, a link to the group settings. By clicking the last button you can leave that group.

Use cases

You can create groups for numerous reasons. To name a few:

Namespaces

In GitLab, a namespace is a unique name to be used as a user name, a group name, or a subgroup name.

For example, consider a user called John:

  1. John creates his account on GitLab.com with the username jonh; his profile will be accessed under https://gitlab.example.com/john
  2. John creates a group for his team with the groupname john-team; his group and its projects will be accessed under https://gitlab.example.com/john-team
  3. John creates a subgroup of john-team with the subgroup name marketing; his subgroup and its projects will be accessed under https://gitlab.example.com/john-team/marketing

By doing so:

Create a new group

You can create a group in GitLab from:

  1. The Groups page: expand the left menu, click Groups, and click the green button New group:

    new group from groups page

  2. Elsewhere: expand the plus sign button on the top navbar and choose New group:

    new group from elsewhere

Add the following information:

new group info

  1. Set the Group path which will be the namespace under which your projects will be hosted (path can contain only letters, digits, underscores, dashes and dots; it cannot start with dashes or end in dot).
  2. The Group name will populate with the path. Optionally, you can change it. This is the name that will display in the group views.
  3. Optionally, you can add a description so that others can briefly understand what this group is about.
  4. Optionally, choose an avatar for your project.
  5. Choose the visibility level.

Add users to a group

Add members to a group by navigating to the group's dashboard, and clicking Members:

add members to group

Select the permission level and add the new member. You can also set the expiring date for that user, from which they will no longer have access to your group.

One of the benefits of putting multiple projects in one group is that you can give a user to access to all projects in the group with one action.

Consider we have a group with two projects:

If necessary, you can increase the access level of an individual user for a specific project, by adding them again as a new member to the project with the new permission levels.

Request access to a group

As a group owner you can enable or disable non members to request access to your group. Go to the group settings and click on Allow users to request access.

As a user, you can request to be a member of a group. Go to the group you'd like to be a member of, and click the Request Access button on the right side of your screen.

Request access button


Group owners and masters will be notified of your request and will be able to approve or decline it on the members page.

Manage access requests


If you change your mind before your request is approved, just click the Withdraw Access Request button.

Withdraw access request button

Add projects to a group

There are two different ways to add a new project to a group:

Transfer an existing project into a group

You can transfer an existing project into a group as long as you have at least Master permissions to that group and if you are an Owner of the project.

Transfer a project to a new namespace

Find this option under your project's settings.

GitLab administrators can use the admin interface to move any project to any namespace if needed.

Manage group memberships via LDAP

In GitLab Enterprise Edition it is possible to manage GitLab group memberships using LDAP groups. See the GitLab Enterprise Edition documentation for more information.

Group settings

Once you have created a group, you can manage its settings by navigating to the group's dashboard, and clicking Settings.

group settings

General settings

Besides giving you the option to edit any settings you've previously set when creating the group, you can also access further configurations for your group.

Enforce 2FA to group members

Add a secury layer to your group by enforcing two-factor authentication (2FA) to all group members.

Member Lock (EES/EEP)

Available in GitLab Enterprise Edition Starter, with Member Lock it is possible to lock membership in project to the level of members in group.

Learn more about Member Lock.

Share with group lock (EES/EEP)

In GitLab Enterprise Edition Starter it is possible to prevent projects in a group from sharing a project with another group. This allows for tighter control over project access.

Learn more about Share with group lock.

Advanced settings