<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macOS: 11.3.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FileProvider",
  "identifier" : "/documentation/FileProvider/NSFileProviderDomainState/userInfo",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "File Provider"
    ],
    "preciseIdentifier" : "c:objc(pl)NSFileProviderDomainState(py)userInfo"
  },
  "title" : "userInfo"
}
-->

# userInfo

Global state information about the current domain version.

```
var userInfo: [AnyHashable : Any] { get }
```

## Discussion

Use this dictionary to add state information to the domain. You can then access the [`userInfo`](/documentation/FileProvider/NSFileProviderDomainState/userInfo) dictionary in predicates for user interactions, file provider actions, and <doc://com.apple.documentation/documentation/FileProviderUI> actions using the `domainUserInfo` context key.

This dictionary must only contain the following types for both its keys and values:

- <doc://com.apple.documentation/documentation/Foundation/NSString>
- <doc://com.apple.documentation/documentation/Foundation/NSNumber>
- <doc://com.apple.documentation/documentation/Foundation/NSDate>
- <doc://com.apple.documentation/documentation/Foundation/NSPersonNameComponents>

The system expects you to update the `domainVersion` whenever the value of the [`userInfo`](/documentation/FileProvider/NSFileProviderDomainState/userInfo) dictionary changes.

---

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)