<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Contacts",
  "identifier" : "/documentation/Contacts/CNGroup/predicateForSubgroupsInGroup(withIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Contacts"
    ],
    "preciseIdentifier" : "c:objc(cs)CNGroup(cm)predicateForSubgroupsInGroupWithIdentifier:"
  },
  "title" : "predicateForSubgroupsInGroup(withIdentifier:)"
}
-->

# predicateForSubgroupsInGroup(withIdentifier:)

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

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

## Parameters

`parentGroupIdentifier`

The parent group to be matched.

## Return Value

A predicate that you can use to fetch subgroup information from [`CNContactStore`](/documentation/Contacts/CNContactStore).

---

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)