<!--
{
  "availability" : [
    "iOS: 10.0.0 - 11.0.0",
    "iPadOS: 10.0.0 - 11.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 3.2.0 - 4.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INSearchForMessagesIntent/groupNamesOperator",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INSearchForMessagesIntent(py)groupNamesOperator"
  },
  "title" : "groupNamesOperator"
}
-->

# groupNamesOperator

The operator that defines how to use the group names in the search criteria.

```
var groupNamesOperator: INConditionalOperator { get }
```

## Discussion

This property indicates whether the message must contain all, some, or none of the groups listed in the [`groupNames`](/documentation/Intents/INSearchForMessagesIntent/groupNames) property.

---

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)