---
title: SecPreferencesDomain
framework: security
role: symbol
role_heading: Enumeration
path: security/secpreferencesdomain
---

# SecPreferencesDomain

The keychain preference domains.

## Declaration

```swift
enum SecPreferencesDomain
```

## Overview

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 for the preference domain, the keychain is added to the search list for all users and the system.

## Topics

### Constants

- [SecPreferencesDomain.user](security/secpreferencesdomain/user.md)
- [SecPreferencesDomain.system](security/secpreferencesdomain/system.md)
- [SecPreferencesDomain.common](security/secpreferencesdomain/common.md)
- [SecPreferencesDomain.dynamic](security/secpreferencesdomain/dynamic.md)

### Initializers

- [init(rawValue:)](security/secpreferencesdomain/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
