---
title: "SCNetworkConnectionCopyUserPreferences(_:_:_:)"
framework: systemconfiguration
role: symbol
role_heading: Function
path: "systemconfiguration/scnetworkconnectioncopyuserpreferences(_:_:_:)"
---

# SCNetworkConnectionCopyUserPreferences(_:_:_:)

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

## Declaration

```swift
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

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

## Discussion

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

## See Also

### Getting Connection-Status Information

- [SCNetworkConnectionGetTypeID()](systemconfiguration/scnetworkconnectiongettypeid().md)
- [SCNetworkConnectionCopyServiceID(_:)](systemconfiguration/scnetworkconnectioncopyserviceid(_:).md)
- [SCNetworkConnectionGetStatus(_:)](systemconfiguration/scnetworkconnectiongetstatus(_:).md)
- [SCNetworkConnectionCopyExtendedStatus(_:)](systemconfiguration/scnetworkconnectioncopyextendedstatus(_:).md)
- [SCNetworkConnectionCopyStatistics(_:)](systemconfiguration/scnetworkconnectioncopystatistics(_:).md)
- [SCNetworkConnectionCopyUserOptions(_:)](systemconfiguration/scnetworkconnectioncopyuseroptions(_:).md)
