---
title: Keys for the user info dictionary
framework: corefoundation
role: collectionGroup
role_heading: API Collection
path: corefoundation/keys-for-the-user-info-dictionary
---

# Keys for the user info dictionary

Keys in the userInfo dictionary.

## Overview

Overview When you create a user info dictionary, at a minimum you should provide values for one of kCFErrorLocalizedDescriptionKey and kCFErrorLocalizedFailureReasonKey; ideally you should provide values for kCFErrorLocalizedDescriptionKey, kCFErrorLocalizedFailureReasonKey, and  kCFErrorLocalizedRecoverySuggestionKey. Typically, you should provide a value for one of either kCFErrorURLKey or kCFErrorFilePathKey.

## Topics

### Constants

- [kCFErrorLocalizedDescriptionKey](corefoundation/kcferrorlocalizeddescriptionkey.md)
- [kCFErrorLocalizedFailureReasonKey](corefoundation/kcferrorlocalizedfailurereasonkey.md)
- [kCFErrorLocalizedRecoverySuggestionKey](corefoundation/kcferrorlocalizedrecoverysuggestionkey.md)
- [kCFErrorDescriptionKey](corefoundation/kcferrordescriptionkey.md)
- [kCFErrorUnderlyingErrorKey](corefoundation/kcferrorunderlyingerrorkey.md)
- [kCFErrorURLKey](corefoundation/kcferrorurlkey.md)
- [kCFErrorFilePathKey](corefoundation/kcferrorfilepathkey.md)

## See Also

### Constants

- [Error domains](corefoundation/error-domains.md)
