GitLab organization Severityhigh builtIn

Description

Top-level groups should not allow non-members to request access via the open Request Access button. Disabling request_access_enabled prevents external accounts from initiating join requests that an over-busy Owner might rubber-stamp. Use formal invitation flows instead.

Recommendation

1. Go to your top-level Group Settings > General. 
2. Expand the Permissions and group features section. 
3. Uncheck Allow users to request access (sets request_access_enabled = false). 
4. Save changes.

Policy Rule

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