---
title: "predicateForContainerOfGroup(withIdentifier:)"
framework: contacts
role: symbol
role_heading: Type Method
path: "contacts/cncontainer/predicateforcontainerofgroup(withidentifier:)"
---

# predicateForContainerOfGroup(withIdentifier:)

Returns a predicate to find the container of the specified group.

## Declaration

```swift
class func predicateForContainerOfGroup(withIdentifier groupIdentifier: String) -> NSPredicate
```

## Parameters

- `groupIdentifier`: The group identifier to be matched.

## Return Value

Return Value A predicate that can be used to fetch a container from CNContactStore.

## See Also

### Generating Search Predicates for Containers

- [predicateForContainerOfContact(withIdentifier:)](contacts/cncontainer/predicateforcontainerofcontact(withidentifier:).md)
- [predicateForContainers(withIdentifiers:)](contacts/cncontainer/predicateforcontainers(withidentifiers:).md)
