GitLab: one group of people for all the projects in group

815 views Asked by At

I have a set of projects and one group (team) of people working with them. My team is flat so permissions are the same for all the projects. I'd like to set them at a group level.

So I've created a group (of projects) in gitlab with url e.g. gitlab.com/mygroup. Projects have urls in it, like gitlab.com/mygroup/proj1, gitlab.com/mygroup/proj2 and so on. I've added people to the group at page gitlab.com/groups/mygroup/group_members. But they cannot get access to projects, unless I add them as a project members directly to every project on page gitlab.com/mygroup/proj1/project_members. But in this case I have to repeat action for each person and each project.

How can I add all the people to a group once and they share all permission to all projects?

1

There are 1 answers

1
Piotr Dawidiuk On BEST ANSWER

Important fact is all projects and group are private.

As we mentioned in comments, it seems that rule of private projects

Project access must be granted explicitly for each user

is more important than

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

In a private group, the only option is private projects, so all users must be manually added to projects.

There is one workaround but I don't know if it's very useful:

  1. Create internal group
  2. Add members
  3. Add internal projects (all users are implicitly joining to projects)
  4. Change visibility of projects to private
  5. Change group visibility to private

Tested on 8.15.4-ee