---
title: parentGroups()
framework: addressbook
role: symbol
role_heading: Instance Method
path: addressbook/abgroup/parentgroups()
---

# parentGroups()

Returns an array containing a group’s parents—that is, the groups that a group belongs to.

## Declaration

```swift
func parentGroups() -> [Any]!
```

## Discussion

Discussion If this group doesn’t belong to any groups, this method returns an empty array.

## See Also

### Managing subgroups

- [addSubgroup(_:)](addressbook/abgroup/addsubgroup(_:).md)
- [removeSubgroup(_:)](addressbook/abgroup/removesubgroup(_:).md)
- [subgroups()](addressbook/abgroup/subgroups().md)
