---
title: groupNamesOperator
framework: intents
role: symbol
role_heading: Instance Property
path: intents/insearchformessagesintent/groupnamesoperator
---

# groupNamesOperator

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

## Declaration

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

## Discussion

Discussion This property indicates whether the message must contain all, some, or none of the groups listed in the groupNames property.

## See Also

### Deprecated Symbols

- [init(recipients:senders:searchTerms:attributes:dateTimeRange:identifiers:notificationIdentifiers:speakableGroupNames:)](intents/insearchformessagesintent/init(recipients:senders:searchterms:attributes:datetimerange:identifiers:notificationidentifiers:speakablegroupnames:).md)
- [init(recipients:senders:searchTerms:attributes:dateTimeRange:identifiers:notificationIdentifiers:groupNames:)](intents/insearchformessagesintent/init(recipients:senders:searchterms:attributes:datetimerange:identifiers:notificationidentifiers:groupnames:).md)
- [groupNames](intents/insearchformessagesintent/groupnames.md)
