<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AddressBook",
  "identifier" : "/documentation/AddressBook/ABGroupCopyArrayOfAllSubgroups(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Address Book"
    ],
    "preciseIdentifier" : "c:@F@ABGroupCopyArrayOfAllSubgroups"
  },
  "title" : "ABGroupCopyArrayOfAllSubgroups(_:)"
}
-->

# ABGroupCopyArrayOfAllSubgroups(_:)

Returns an array containing a group’s subgroups.

```
func ABGroupCopyArrayOfAllSubgroups(_ group: ABGroupRef!) -> Unmanaged<CFArray>!
```

## Parameters

`group`

The ABGroup object whose subgroups you wish to obtain.

## Return Value

An array of ABGroupobjects representing the subgroups of `group`.If `group` doesn’t contain any groups,this function returns an empty array. You are responsible for releasingthis object.

---

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)