---
title: "predicateForSubgroupsInGroup(withIdentifier:)"
framework: contacts
role: symbol
role_heading: Type Method
path: "contacts/cngroup/predicateforsubgroupsingroup(withidentifier:)"
---

# predicateForSubgroupsInGroup(withIdentifier:)

Returns a predicate to find subgroups in the specified parent group.

## Declaration

```swift
class func predicateForSubgroupsInGroup(withIdentifier parentGroupIdentifier: String) -> NSPredicate
```

## Parameters

- `parentGroupIdentifier`: The parent group to be matched.

## Return Value

Return Value A predicate that you can use to fetch subgroup information from CNContactStore.

## See Also

### Generating Search Predicates for Groups

- [predicateForGroups(withIdentifiers:)](contacts/cngroup/predicateforgroups(withidentifiers:).md)
- [predicateForGroupsInContainer(withIdentifier:)](contacts/cngroup/predicateforgroupsincontainer(withidentifier:).md)
