---
title: "manageUsers(completionHandler:)"
framework: homekit
role: symbol
role_heading: Instance Method
path: "homekit/hmhome/manageusers(completionhandler:)"
---

# manageUsers(completionHandler:)

Presents a view controller to manage users of the home.

## Declaration

```swift
func manageUsers(completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func manageUsers() async throws
```

## Parameters

- `completion`: The block executed after the request is processed.

## Discussion

Discussion Only users that have administrator access to the home can call this method. Otherwise, the completion handler returns the error HMError.Code.insufficientPrivileges.

## See Also

### Managing users

- [currentUser](homekit/hmhome/currentuser.md)
- [HMUser](homekit/hmuser.md)
