---
title: "setUserWith(_:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterdoorlock/setuserwith(_:completionhandler:)"
---

# setUserWith(_:completionHandler:)

## Declaration

```swift
func setUserWith(_ params: MTRDoorLockClusterSetUserParams, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func setUserWith(_ params: MTRDoorLockClusterSetUserParams) async throws
```
