<!--
{
  "availability" : [
    "tvOS: 16.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/kSecUseUserIndependentKeychain",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@kSecUseUserIndependentKeychain"
  },
  "title" : "kSecUseUserIndependentKeychain"
}
-->

# kSecUseUserIndependentKeychain

A key with a value that indicates whether to store the data in a keychain available to anyone who uses the device.

```
let kSecUseUserIndependentKeychain: CFString
```

## Discussion

The corresponding value is of type <doc://com.apple.documentation/documentation/CoreFoundation/CFBoolean>. A value of <doc://com.apple.documentation/documentation/CoreFoundation/kCFBooleanTrue> stores the item in a shared keychain that your app can access even when a different user is active. A value of <doc://com.apple.documentation/documentation/CoreFoundation/kCFBooleanFalse> or omitting this key-value pair stores the item in the current user’s keychain.

To view a sample code project that uses this key to streamline experiences like family media accounts, see <doc://com.apple.documentation/documentation/TVServices/mapping-apple-tv-users-to-app-profiles>.

---

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)