---
title: "resolveGroupName(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/insendmessageintenthandling/resolvegroupname(for:with:)"
---

# resolveGroupName(for:with:)

Resolves the name of the group receiving the message.

## Declaration

```swift
optional func resolveGroupName(for intent: INSendMessageIntent, with completion: @escaping @Sendable (INStringResolutionResult) -> Void)
```

```swift
optional func resolveGroupName(for intent: INSendMessageIntent) async -> INStringResolutionResult
```

## Parameters

- `intent`: The intent object containing details about the user’s request. Use this object to get the initial information, if any, provided by the user.
- `completion`: The block to execute with the resolution. You must execute this block at some point during your implementation of this method. This block has no return value and takes the following parameter:

## Discussion

Discussion Implement this method if your app supports the sending messages to named groups. A group may be specified instead of, or in addition to, individual recipients.

## See Also

### Deprecated Methods

- [resolveRecipients(for:with:)](intents/insendmessageintenthandling/resolverecipients(for:with:)-2yejx.md)
