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

# SCNetworkConnectionCopyUserPreferences(_:_:_:)

Provides the default service ID and a dictionary of user options for the specified connection.

```
func SCNetworkConnectionCopyUserPreferences(_ selectionOptions: CFDictionary?, _ serviceID: UnsafeMutablePointer<Unmanaged<CFString>?>, _ userOptions: UnsafeMutablePointer<Unmanaged<CFDictionary>?>) -> Bool
```

## Parameters

`selectionOptions`

Currently unimplemented. Pass `NULL`.

`serviceID`

On output, a reference to the default service ID for starting connections.

`userOptions`

On output, a reference to the default user options dictionary for starting connections.

## Return Value

`TRUE` if there is a valid service to dial; `FALSE` if the function was unable to retrieve a service to dial.

## Discussion

You can use the service ID and user options values returned by this function to open a connection on the fly.

---

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)