<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecPreferencesDomain",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@E@SecPreferencesDomain"
  },
  "title" : "SecPreferencesDomain"
}
-->

# SecPreferencesDomain

The keychain preference domains.

```
enum SecPreferencesDomain
```

## Overview

A preference domain is a set of security-related preferences, such as the default keychain and the current keychain search list. The default preference domain for system daemons (that is, for daemons running in the root session) is the system domain. The default preference domain for all other programs is the user domain. A common preference appears for all users and the system. For example, if you add a keychain to the keychain search list using [`SecPreferencesDomain.common`](/documentation/Security/SecPreferencesDomain/common) for the preference domain, the keychain is added to the search list for all users and the system.

## Topics

### Constants

[`SecPreferencesDomain.user`](/documentation/Security/SecPreferencesDomain/user)

Indicates the user preference domain preferences.

[`SecPreferencesDomain.system`](/documentation/Security/SecPreferencesDomain/system)

Indicates the system or daemon preference domain preferences.

[`SecPreferencesDomain.common`](/documentation/Security/SecPreferencesDomain/common)

Indicates the preferences are common to everyone.

[`SecPreferencesDomain.dynamic`](/documentation/Security/SecPreferencesDomain/dynamic)

Indicates a dynamic search list (typically provided by removable keychains such as smart cards).



---

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)