---
title: "addGroupIfIdentifying(with:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclustergroups/addgroupifidentifying(with:completionhandler:)"
---

# addGroupIfIdentifying(with:completionHandler:)

## Declaration

```swift
func addGroupIfIdentifying(with params: MTRGroupsClusterAddGroupIfIdentifyingParams, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func addGroupIfIdentifying(with params: MTRGroupsClusterAddGroupIfIdentifyingParams) async throws
```
