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

# setUserWith(_:completion:)

## Declaration

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

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