<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INSearchForMessagesIntentHandling/resolveSenders(for:with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(pl)INSearchForMessagesIntentHandling(im)resolveSendersForSearchForMessages:withCompletion:"
  },
  "title" : "resolveSenders(for:with:)"
}
-->

# resolveSenders(for:with:)

Resolves the user’s input when they search for messages sent by specific people.

```
optional func resolveSenders(for intent: INSearchForMessagesIntent, with completion: @escaping @Sendable ([INPersonResolutionResult]) -> Void)
```

## Parameters

`intent`

The intent object that contains 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 while implementing this method. This block has no return value and takes the following parameter:

- resolutionResults: The object that contains the details of your proposed resolution. For successful resolutions, create one or more resolution objects that include the [`INPerson`](/documentation/Intents/INPerson) objects representing the message senders to use during the search.

## Discussion

This method resolves the `sender` search parameter. Use the information in the `intent` object to identify the corresponding users in your app. Always strive toward a successful resolution of the specified users, but ask for confirmation for one or more users if there is some uncertainty.

If you find multiple users matching the same name, consider asking the user to disambiguate from among the most likely candidates. When disambiguating users, provide as few choices as possible. If you find more than five possible users, consider a different resolution.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)