---
title: HMError.Code.userDeclinedAddingUser
framework: homekit
role: symbol
role_heading: Case
path: homekit/hmerror/code/userdeclinedaddinguser
---

# HMError.Code.userDeclinedAddingUser

An error indicating the user canceled the add user operation.

## Declaration

```swift
case userDeclinedAddingUser
```

## See Also

### User errors

- [HMError.Code.userDeclinedRemovingUser](homekit/hmerror/code/userdeclinedremovinguser.md)
- [HMError.Code.userDeclinedInvite](homekit/hmerror/code/userdeclinedinvite.md)
- [HMError.Code.userIDNotEmailAddress](homekit/hmerror/code/useridnotemailaddress.md)
- [HMError.Code.userManagementFailed](homekit/hmerror/code/usermanagementfailed.md)
