GitLab organization Severitymedium builtIn

Description

Top-level groups should restrict who can create subgroups to the Owner role. Setting subgroup_creation_level = owner prevents Maintainers from spawning shadow subgroups that escape parent-group governance, audit, or visibility constraints. Allowed values: owner | maintainer.

Recommendation

1. Go to your top-level Group Settings > General. 
2. Expand the Permissions and group features section. 
3. Under Roles allowed to create subgroups, choose Owners. 
4. Save changes.

Policy Rule

{
  "target": "GLGroup",
  "if": {
    "allOf": [
      {
        "resource": "GLGroup",
        "property": "SubgroupCreationLevel",
        "operator": "equals",
        "value": "owner"
      }
    ]
  },
  "then": {
    "effect": "Audit"
  }
}