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

# getUserWith(_:completion:)

## Declaration

```swift
func getUserWith(_ params: MTRDoorLockClusterGetUserParams, completion: @escaping @Sendable (MTRDoorLockClusterGetUserResponseParams?, (any Error)?) -> Void)
```

```swift
func user(with params: MTRDoorLockClusterGetUserParams) async throws -> MTRDoorLockClusterGetUserResponseParams
```
