Will inviting a top-level group invites its subgroups too?

Replace this template with your information

Describe your question in as much detail as possible:

  • What are you seeing, and how does it differ from what you expect to see? Not sure yet.
  • What version are you on (Hint: /help) ? gitlab.com

I’ve tested this like this:

  1. Create top-level group, owned by user-A.
  2. Create subgroup, owned by nobody (inherits user-A ownership).
  3. Create subsubgroup, co-owned by user-B.
  4. Create project at top-level group, invite subgroup.
  5. user-B has no access to said project.

This is very nice! That means I get to create an org chart of users, and still be able to do group-based access control (Invite group)!

Just wanna confirm that is how gitlab.com works?

Correct, @jonwong_zl! By default that is how groups work in GitLab.

If you wanted to stop sub-groups from having permissions, you would need to do an extra step—the “share with group lock”—which is detailed here in the docs.

Let me know if that answers your question! :blush: