Contents

manageUsers(completionHandler:)

Presents a view controller to manage users of the home.

Declaration

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

Parameters

  • completion:

    The block executed after the request is processed.

    error

    nil on success; otherwise, error object indicating the reason for failure.

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