<!--
{
  "availability" : [
    "iOS: 8.0.0 - 27.0.0",
    "iPadOS: 8.0.0 - 27.0.0",
    "macCatalyst: 8.0.0 - 27.0.0",
    "tvOS: 10.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0",
    "watchOS: 2.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMUserFailedAccessoriesKey",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "c:@HMUserFailedAccessoriesKey"
  },
  "title" : "HMUserFailedAccessoriesKey"
}
-->

# HMUserFailedAccessoriesKey

The key for retrieving details of what accessories failed to add or remove a user.

```
let HMUserFailedAccessoriesKey: String
```

## Discussion

The value associated with this key is an <doc://com.apple.documentation/documentation/Foundation/NSArray> of <doc://com.apple.documentation/documentation/Foundation/NSDictionary> objects. Each dictionary contains the <doc://com.apple.documentation/documentation/Foundation/NSUUID> of the accessory that failed to be added/removed and the value corresponding to the dictionary key is an <doc://com.apple.documentation/documentation/Foundation/NSError> that provides more details on the underlying error for that accessory.

---

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)