---
title: HMUserFailedAccessoriesKey
framework: homekit
role: symbol
role_heading: Global Variable
path: homekit/hmuserfailedaccessorieskey
---

# HMUserFailedAccessoriesKey

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

## Declaration

```swift
let HMUserFailedAccessoriesKey: String
```

## Discussion

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

## See Also

### Controlling user access

- [homeAccessControl(for:)](homekit/hmhome/homeaccesscontrol(for:).md)
- [HMHomeAccessControl](homekit/hmhomeaccesscontrol.md)
- [HMAccessControl](homekit/hmaccesscontrol.md)
