<!--
{
  "availability" : [
    "SwiftPM: 5.9.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PackageDescription",
  "identifier" : "/documentation/PackageDescription/PluginPermission/allowNetworkConnections(scope:reason:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "PackageDescription"
    ],
    "preciseIdentifier" : "s:18PackageDescription16PluginPermissionO23allowNetworkConnectionsyAcA0cfD5ScopeO_SStcACmF"
  },
  "title" : "PluginPermission.allowNetworkConnections(scope:reason:)"
}
-->

# PluginPermission.allowNetworkConnections(scope:reason:)

Create a permission to make network connections.

```
case allowNetworkConnections(scope: PluginNetworkPermissionScope, reason: String)
```

## Parameters

`scope`

The scope of the permission.

`reason`

A reason why the permission is needed. This is shown to the user when permission is sought.

## Discussion

The command plug-in requires permission to make network connections. The `reason` string is shown
to the user at the time of request for approval, explaining why the plug-in is requesting access.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)