---
title: "ABGroupCopyParentGroups(_:)"
framework: addressbook
role: symbol
role_heading: Function
path: "addressbook/abgroupcopyparentgroups(_:)"
---

# ABGroupCopyParentGroups(_:)

Returns an array containing a group’s parents—thegroups that a group belongs to.

## Declaration

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

## Parameters

- `group`: The group whose parent groups you wish to obtain.

## Return Value

Return Value An array containingABGroup objects representing the parents of group.If group doesn’t belong to anygroups, this function returns an empty array. You are responsiblefor releasing this object.

## See Also

### Groups

- [ABCopyArrayOfAllGroups(_:)](addressbook/abcopyarrayofallgroups(_:).md)
- [ABGroupAddGroup(_:_:)](addressbook/abgroupaddgroup(_:_:).md)
- [ABGroupAddMember(_:_:_:)](addressbook/abgroupaddmember(_:_:).md)
- [ABGroupCopyArrayOfAllMembers(_:)](addressbook/abgroupcopyarrayofallmembers(_:).md)
- [ABGroupCopyArrayOfAllSubgroups(_:)](addressbook/abgroupcopyarrayofallsubgroups(_:).md)
- [ABGroupCopyDistributionIdentifier(_:_:_:)](addressbook/abgroupcopydistributionidentifier(_:_:_:).md)
- [ABGroupCreate()](addressbook/abgroupcreate().md)
- [ABGroupCreateSearchElement(_:_:_:_:_:)](addressbook/abgroupcreatesearchelement(_:_:_:_:_:).md)
- [ABGroupRemoveGroup(_:_:)](addressbook/abgroupremovegroup(_:_:).md)
- [ABGroupRemoveMember(_:_:_:)](addressbook/abgroupremovemember(_:_:).md)
- [ABGroupSetDistributionIdentifier(_:_:_:_:)](addressbook/abgroupsetdistributionidentifier(_:_:_:_:).md)
