<!--
{
  "availability" : [
    "macOS: 10.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SystemConfiguration",
  "identifier" : "/documentation/SystemConfiguration/SCNetworkConnectionCopyUserOptions(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "System Configuration"
    ],
    "preciseIdentifier" : "c:@F@SCNetworkConnectionCopyUserOptions"
  },
  "title" : "SCNetworkConnectionCopyUserOptions(_:)"
}
-->

# SCNetworkConnectionCopyUserOptions(_:)

Gets the user options used to start the specified connection.

```
func SCNetworkConnectionCopyUserOptions(_ connection: SCNetworkConnection) -> CFDictionary?
```

## Parameters

`connection`

The network connection.

## Return Value

The service dictionary containing the connection options (the dictionary can be empty if no user options were used), or `NULL` if an error occurred (use the [`SCError()`](/documentation/SystemConfiguration/SCError()) function to retrieve the specific error).

## Discussion

A client can call this function to retrieve the user options previously passed to the [`SCNetworkConnectionStart(_:_:_:)`](/documentation/SystemConfiguration/SCNetworkConnectionStart(_:_:_:)) function.

---

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)